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, policyToken
Fields 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 operatorboolean
equals operatorboolean
equalsIgnoreTargets
(WSSPolicy policy) getSTRID()
byte[]
getType()
Get the type of the policy.void
setEncodingType
(String encodingType) void
setIncludeToken
(String include) override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profilevoid
setKeyAlgorithm
(String keyAlgorithm) void
setReferenceType
(String referenceType) set the ReferenceTypevoid
setSecretKey
(SecretKey secretKey) Set the symmetric keyvoid
void
setTokenValue
(byte[] token) void
setValueType
(String valueType) set the ValueTypeMethods inherited from class com.sun.xml.wss.impl.policy.mls.KeyBindingBase
getClaims, getIncludeToken, getIssuer, policyTokenWasSet, setClaims, 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
-
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:WSSPolicy
equals operator -
equalsIgnoreTargets
- Specified by:
equalsIgnoreTargets
in classWSSPolicy
-
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
override the method from KeyBindingBase as we will support IncludeToken=Once in Kerberos token profile- Overrides:
setIncludeToken
in classKeyBindingBase
- Parameters:
include
- the value of IncludeToken parameter
-