com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy.KeyValueTokenBinding

java.lang.Object
  extended by com.sun.xml.wss.impl.policy.MLSPolicy
      extended by com.sun.xml.wss.impl.policy.mls.WSSPolicy
          extended by com.sun.xml.wss.impl.policy.mls.KeyBindingBase
              extended by com.sun.xml.wss.impl.policy.mls.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.


Field Summary
 
Fields inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
claims, claimsDialect, INCLUDE_ALWAYS, INCLUDE_ALWAYS_TO_RECIPIENT, INCLUDE_ALWAYS_TO_RECIPIENT_VER2, INCLUDE_ALWAYS_VER2, INCLUDE_NEVER, INCLUDE_NEVER_VER2, INCLUDE_ONCE, INCLUDE_ONCE_VER2, includeToken, issuer, policyToken
 
Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID
 
Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
readonly
 
Constructor Summary
AuthenticationTokenPolicy.KeyValueTokenBinding()
          Default Constructor
 
Method Summary
 Object clone()
          Clone operator
 boolean equals(WSSPolicy policy)
          equals operator
 boolean equalsIgnoreTargets(WSSPolicy policy)
           
 String getEncodingType()
           
 String getReferenceType()
           
 String getType()
          Get the type of the policy.
 String getValueType()
           
 MLSPolicy newPrivateKeyBinding()
          Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding
 void setEncodingType(String encodingType)
          set the EncodingType
 void setReferenceType(String referenceType)
          set the ReferenceType
 void setValueType(String valueType)
          set the ValueType
 String toString()
           
 
Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlag
 
Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUID
 
Methods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
isReadOnly, isReadOnly
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationTokenPolicy.KeyValueTokenBinding

public AuthenticationTokenPolicy.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

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:
SignaturePolicy, EncryptionPolicy, AuthenticationTokenPolicy, PrivateKeyBinding, SymmetricKeyBinding

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:
SignaturePolicy, EncryptionPolicy, AuthenticationTokenPolicy

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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.