Class AuthenticationTokenPolicy.KerberosTokenBinding

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

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

      • KerberosTokenBinding

        public KerberosTokenBinding()
        Default constructor
    • Method Detail

      • setValueType

        public void setValueType​(String valueType)
        set the ValueType
        Parameters:
        valueType - attribute like Kerberosv5_AP_REQ
      • setReferenceType

        public void setReferenceType​(String referenceType)
        set the ReferenceType
        Parameters:
        referenceType - allowed values are Direct and KeyIdentifier
      • setEncodingType

        public void setEncodingType​(String encodingType)
      • setTokenValue

        public void setTokenValue​(byte[] token)
      • setSTRID

        public void setSTRID​(String id)
      • getSTRID

        public String getSTRID()
      • getValueType

        public String getValueType()
        Returns:
        valueType
      • getReferenceType

        public String getReferenceType()
        Returns:
        referenceType
      • getEncodingType

        public String getEncodingType()
        Returns:
        encodingType
      • getTokenValue

        public byte[] getTokenValue()
        Returns:
        Token Value
      • setKeyAlgorithm

        public void setKeyAlgorithm​(String keyAlgorithm)
        Parameters:
        keyAlgorithm - the keyAlgorithm
      • getKeyAlgorithm

        public String getKeyAlgorithm()
        Returns:
        the keyAlgorithm
      • setSecretKey

        public void setSecretKey​(SecretKey secretKey)
        Set the symmetric key
        Parameters:
        secretKey - the SecretKey
      • getSecretKey

        public SecretKey getSecretKey()
        Returns:
        SecretKey the symmetric key
      • 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
      • setIncludeToken

        public void setIncludeToken​(String include)
        override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profile
        Overrides:
        setIncludeToken in class KeyBindingBase
        Parameters:
        include - the value of IncludeToken parameter