Class KerberosToken

java.lang.Object
com.sun.xml.ws.policy.PolicyAssertion
com.sun.xml.ws.security.impl.policy.KerberosToken
All Implemented Interfaces:
KerberosToken, SecurityAssertionValidator, Token

public class KerberosToken extends PolicyAssertion implements KerberosToken, SecurityAssertionValidator
Author:
mayank.mishra@Sun.com
  • Constructor Details

  • Method Details

    • getTokenType

      public String getTokenType()
      Description copied from interface: KerberosToken
      returns the type of the token.
      Specified by:
      getTokenType in interface KerberosToken
      Returns:
      one of WSSKERBEROS_V5_AP_REQ_TOKEN11,WSSKERBEROS_GSS_V5_AP_REQ_TOKEN11
    • setTokenType

      public void setTokenType(String tokenType)
    • getTokenRefernceType

      public Set getTokenRefernceType()
      Description copied from interface: KerberosToken
      returns a Set over the token reference types to be used.
      Specified by:
      getTokenRefernceType in interface KerberosToken
      Returns:
      either REQUIRE_KEY_IDENTIFIER_REFERENCE
    • addTokenReferenceType

      public void addTokenReferenceType(String tokenRefType)
    • isRequireDerivedKeys

      public boolean isRequireDerivedKeys()
      Description copied from interface: KerberosToken
      returns true if RequiredDerivedKey element is present under Kerberos Token.
      Specified by:
      isRequireDerivedKeys in interface KerberosToken
      Returns:
      true if RequireDerviedKeys element is present under Kerbeors Token or false.
    • getIncludeToken

      public String getIncludeToken()
      Description copied from interface: Token
      returns the token inclusion value
      Specified by:
      getIncludeToken in interface Token
      Returns:
      one of ONCE,NEVER,ALWAYS_TO_RECIPIENT,ALWAYS
    • setIncludeToken

      public void setIncludeToken(String type)
    • getTokenId

      public String getTokenId()
      Description copied from interface: Token
      Unique Id assigned to the token.
      Specified by:
      getTokenId in interface Token
      Returns:
      String representation of the token id.
    • getIssuer

      public Issuer getIssuer()
      Description copied from interface: KerberosToken
      returns the issuer for the Kerberos token.
      Specified by:
      getIssuer in interface KerberosToken
      Returns:
      returns the issuer
    • getIssuerName

      public IssuerName getIssuerName()
      Specified by:
      getIssuerName in interface KerberosToken
      Returns:
      the issuer name for Kerberos token
    • getClaims

      public Claims getClaims()
      Specified by:
      getClaims in interface KerberosToken
      Returns:
      Claims
    • validate

      public SecurityAssertionValidator.AssertionFitness validate(boolean isServer)
      Description copied from interface: SecurityAssertionValidator
      returns true if all the assertions embeeded under a SecurityPolicy assertion are valid and supported by the implementation.
      Specified by:
      validate in interface SecurityAssertionValidator
    • getSecurityPolicyVersion

      public SecurityPolicyVersion getSecurityPolicyVersion()
      Specified by:
      getSecurityPolicyVersion in interface Token
      Returns:
      version of SecurityPolicy being used