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

public class KeyValueToken extends com.sun.xml.ws.policy.PolicyAssertion implements KeyValueToken, Cloneable, SecurityAssertionValidator
Author:
ashutosh.shahi@sun.com
  • Constructor Details

    • KeyValueToken

      public KeyValueToken()
      Creates a new instance of KeyValueToken
    • KeyValueToken

      public KeyValueToken(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
  • Method Details

    • setTokenType

      public void setTokenType(String tokenType)
    • getTokenType

      public String getTokenType()
      Description copied from interface: KeyValueToken
      returns the type of the token.
      Specified by:
      getTokenType in interface KeyValueToken
      Returns:
      RsaKeyValue if RSA cryptographic algoroithm should be used
    • 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.
    • getSecurityPolicyVersion

      public SecurityPolicyVersion getSecurityPolicyVersion()
      Specified by:
      getSecurityPolicyVersion in interface Token
      Returns:
      version of SecurityPolicy being used
    • 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