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 Details

    • KeyValueTokenBinding

      public KeyValueTokenBinding()
      Default Constructor
  • Method Details

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

      public boolean equals(WSSPolicy policy)
      Description copied from class: WSSPolicy
      equals operator
      Specified by:
      equals in class WSSPolicy
      Parameters:
      policy - the 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
    • clone

      public Object clone()
      Clone operator
      Specified by:
      clone in class WSSPolicy
      Returns:
      clone of this policy
      See Also:
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object