Package com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy.KerberosTokenBinding
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.KerberosTokenBinding
- All Implemented Interfaces:
SecurityPolicy,Cloneable
- Enclosing class:
- AuthenticationTokenPolicy
A policy representing Kerberos Token. 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) getSTRID()byte[]getType()Get the type of the policy.voidsetEncodingType(String encodingType) voidsetIncludeToken(String include) override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profilevoidsetKeyAlgorithm(String keyAlgorithm) voidsetReferenceType(String referenceType) set the ReferenceTypevoidsetSecretKey(SecretKey secretKey) Set the symmetric keyvoidvoidsetTokenValue(byte[] token) voidsetValueType(String valueType) set the ValueTypeMethods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, 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
-
KerberosTokenBinding
public KerberosTokenBinding()Default constructor
-
-
Method Details
-
setValueType
set the ValueType- Parameters:
valueType- attribute like Kerberosv5_AP_REQ
-
setReferenceType
set the ReferenceType- Parameters:
referenceType- allowed values are Direct and KeyIdentifier
-
setEncodingType
-
setTokenValue
public void setTokenValue(byte[] token) -
setSTRID
-
getSTRID
-
getValueType
- Returns:
- valueType
-
getReferenceType
- Returns:
- referenceType
-
getEncodingType
- Returns:
- encodingType
-
getTokenValue
public byte[] getTokenValue()- Returns:
- Token Value
-
setKeyAlgorithm
- Parameters:
keyAlgorithm- the keyAlgorithm
-
getKeyAlgorithm
- Returns:
- the keyAlgorithm
-
setSecretKey
Set the symmetric key- Parameters:
secretKey- the SecretKey
-
getSecretKey
- Returns:
- SecretKey the symmetric key
-
clone
Clone operator -
equals
Description copied from class:WSSPolicyequals operator -
equalsIgnoreTargets
- Specified by:
equalsIgnoreTargetsin classWSSPolicy
-
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
-
setIncludeToken
override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profile- Overrides:
setIncludeTokenin classKeyBindingBase- Parameters:
include- the value of IncludeToken parameter
-