Class AuthenticationTokenPolicy.KeyValueTokenBinding

  • All Implemented Interfaces:
    SecurityPolicy, Cloneable
    Enclosing class:
    AuthenticationTokenPolicy

    public static class AuthenticationTokenPolicy.KeyValueTokenBinding
    extends KeyBindingBase
    A policy representing a RSAKeyPair. An instance of this class can be used as concrete feature binding for an AuthenticationTokenPolicy.
    • Constructor Detail

      • KeyValueTokenBinding

        public KeyValueTokenBinding()
        Default Constructor
    • Method Detail

      • newPrivateKeyBinding

        public MLSPolicy newPrivateKeyBinding()
        Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding
        Returns:
        a new PrivateKeyBinding as a KeyBinding for this WSSPolicy
      • setValueType

        public void setValueType​(String valueType)
        set the ValueType
        Parameters:
        valueType - Token type like X509v3, X509PKIPathv1, PKCS7
      • setEncodingType

        public void setEncodingType​(String encodingType)
        set the EncodingType
        Parameters:
        encodingType - encoding type like base64
      • setReferenceType

        public void setReferenceType​(String referenceType)
        set the ReferenceType
        Parameters:
        referenceType - KeyIdentifier, Direct etc.,.
      • getValueType

        public String getValueType()
        Returns:
        valueType
      • getEncodingType

        public String getEncodingType()
        Returns:
        encodingType
      • getReferenceType

        public String getReferenceType()
        Returns:
        referenceType
      • getType

        public String getType()
        Description copied from interface: SecurityPolicy
        Get the type of the policy.

        Implementation Note: Useful to avoid instanceof checks and String.equals checks

        Returns:
        the type of the policy