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
public static class AuthenticationTokenPolicy.KerberosTokenBinding extends KeyBindingBase
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 Constructor Description KerberosTokenBinding()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clone operatorbooleanequals(WSSPolicy policy)equals operatorbooleanequalsIgnoreTargets(WSSPolicy policy)StringgetEncodingType()StringgetKeyAlgorithm()StringgetReferenceType()SecretKeygetSecretKey()StringgetSTRID()byte[]getTokenValue()StringgetType()Get the type of the policy.StringgetValueType()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 keyvoidsetSTRID(String id)voidsetTokenValue(byte[] token)voidsetValueType(String valueType)set the ValueType-
Methods 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
-
-
-
-
Method Detail
-
setValueType
public void setValueType(String valueType)
set the ValueType- Parameters:
valueType- attribute like Kerberosv5_AP_REQ
-
setReferenceType
public void setReferenceType(String referenceType)
set the ReferenceType- Parameters:
referenceType- allowed values are Direct and KeyIdentifier
-
setEncodingType
public void setEncodingType(String encodingType)
-
setTokenValue
public void setTokenValue(byte[] token)
-
setSTRID
public void setSTRID(String id)
-
getSTRID
public String getSTRID()
-
getValueType
public String getValueType()
- Returns:
- valueType
-
getReferenceType
public String getReferenceType()
- Returns:
- referenceType
-
getEncodingType
public String getEncodingType()
- Returns:
- encodingType
-
getTokenValue
public byte[] getTokenValue()
- Returns:
- Token Value
-
setKeyAlgorithm
public void setKeyAlgorithm(String keyAlgorithm)
- Parameters:
keyAlgorithm- the keyAlgorithm
-
getKeyAlgorithm
public String getKeyAlgorithm()
- Returns:
- the keyAlgorithm
-
setSecretKey
public void setSecretKey(SecretKey secretKey)
Set the symmetric key- Parameters:
secretKey- the SecretKey
-
getSecretKey
public SecretKey getSecretKey()
- Returns:
- SecretKey the symmetric key
-
clone
public Object clone()
Clone operator- Specified by:
clonein classWSSPolicy- Returns:
- clone of this policy
- See Also:
SignaturePolicy,EncryptionPolicy,AuthenticationTokenPolicy
-
equals
public boolean equals(WSSPolicy policy)
Description copied from class:WSSPolicyequals operator- Specified by:
equalsin classWSSPolicy- Parameters:
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:
equalsIgnoreTargetsin classWSSPolicy
-
getType
public String 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
public void setIncludeToken(String include)
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
-
-