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 Details

    • KerberosTokenBinding

      public KerberosTokenBinding()
      Default constructor
  • Method Details

    • 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
    • clone

      public Object clone()
      Clone operator
      Specified by:
      clone in class WSSPolicy
      Returns:
      clone of this policy
      See Also:
    • equals

      public boolean equals(WSSPolicy policy)
      Description copied from class: WSSPolicy
      equals operator
      Specified by:
      equals in class WSSPolicy
      Parameters:
      policy - to be compared for equality
      Returns:
      true if the argument policy is equal to this
      See Also:
    • equalsIgnoreTargets

      public boolean equalsIgnoreTargets(WSSPolicy policy)
      Specified by:
      equalsIgnoreTargets in class WSSPolicy
    • 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