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

public class RelToken extends com.sun.xml.ws.policy.PolicyAssertion implements RelToken, SecurityAssertionValidator
Author:
Mayank.Mishra@Sun.com
  • Constructor Details

    • RelToken

      public RelToken(com.sun.xml.ws.policy.sourcemodel.AssertionData name, Collection<com.sun.xml.ws.policy.PolicyAssertion> nestedAssertions, com.sun.xml.ws.policy.AssertionSet nestedAlternative)
      Creates a new instance of RelToken
  • Method Details

    • getTokenType

      public String getTokenType()
      Description copied from interface: RelToken
      returns the type of the token.
      Specified by:
      getTokenType in interface RelToken
      Returns:
      one of WSS_REL_V10_TOKEN10,WSS_REL_V20_TOKEN10,WSS_REL_V10_TOKEN11,WSS_REL_V20_TOKEN11
    • getTokenRefernceType

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

      public boolean isRequireDerivedKeys()
      Description copied from interface: RelToken
      returns true if RequiredDerivedKey element is present under REL Token.
      Specified by:
      isRequireDerivedKeys in interface RelToken
      Returns:
      true if RequireDerviedKeys element is present under REL 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
    • 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.
    • 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