Package com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy.KeyValueTokenBinding
java.lang.Object
com.sun.xml.wss.impl.policy.MLSPolicy
com.sun.xml.wss.impl.policy.mls.WSSPolicy
com.sun.xml.wss.impl.policy.mls.KeyBindingBase
com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy.KeyValueTokenBinding
- All Implemented Interfaces:
SecurityPolicy,Cloneable
- Enclosing class:
- AuthenticationTokenPolicy
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, policyTokenFields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone operatorbooleanequals operatorbooleanequalsIgnoreTargets(WSSPolicy policy) getType()Get the type of the policy.Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBindingvoidsetEncodingType(String encodingType) set the EncodingTypevoidsetReferenceType(String referenceType) set the ReferenceTypevoidsetValueType(String valueType) set the ValueTypetoString()Methods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, setIncludeToken, setIssuer, setPolicyTokenFlagMethods inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
getFeatureBinding, getKeyBinding, getPolicyIdentifier, getUUID, isBSP, isBSP, isOptional, isOptional, setFeatureBinding, setKeyBinding, setPolicyIdentifier, setUUIDMethods inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
isReadOnly, isReadOnly
-
Constructor Details
-
KeyValueTokenBinding
public KeyValueTokenBinding()Default Constructor
-
-
Method Details
-
newPrivateKeyBinding
Create and set the KeyBinding for this WSSPolicy to a PrivateKeyBinding- Returns:
- a new PrivateKeyBinding as a KeyBinding for this WSSPolicy
-
setValueType
set the ValueType- Parameters:
valueType- Token type like X509v3, X509PKIPathv1, PKCS7
-
setEncodingType
set the EncodingType- Parameters:
encodingType- encoding type like base64
-
setReferenceType
set the ReferenceType- Parameters:
referenceType- KeyIdentifier, Direct etc.,.
-
getValueType
- Returns:
- valueType
-
getEncodingType
- Returns:
- encodingType
-
getReferenceType
- Returns:
- referenceType
-
equals
Description copied from class:WSSPolicyequals operator -
equalsIgnoreTargets
- Specified by:
equalsIgnoreTargetsin classWSSPolicy
-
clone
Clone operator -
getType
Description copied from interface:SecurityPolicyGet the type of the policy.Implementation Note: Useful to avoid instanceof checks and String.equals checks
- Returns:
- the type of the policy
-
toString
-