Package com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy
- 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.WSSFeatureBindingExtension
-
- com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy
-
- All Implemented Interfaces:
SecurityPolicy,Cloneable
public class AuthenticationTokenPolicy extends WSSFeatureBindingExtension
Objects of this class represent a concrete WSS Authentication token as FeatureBinding. The following WSS Authentication Tokens are supported :- A
UsernameToken - A
X509Certificate - A
SAMLAssertion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthenticationTokenPolicy.KerberosTokenBindingA policy representing Kerberos Token.static classAuthenticationTokenPolicy.KeyValueTokenBindingA policy representing a RSAKeyPair.static classAuthenticationTokenPolicy.SAMLAssertionBindingA policy representing a SAML Assertion.static classAuthenticationTokenPolicy.UsernameTokenBindingA policy representing a WSS UsernameToken.static classAuthenticationTokenPolicy.X509CertificateBindingA policy representing a WSS X509Certificate.
-
Field Summary
-
Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID
-
-
Constructor Summary
Constructors Constructor Description AuthenticationTokenPolicy()Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Clone operatorbooleanequals(WSSPolicy policy)Equals operatorbooleanequalsIgnoreTargets(WSSPolicy policy)StringgetType()Get the type of the policy.-
Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSFeatureBindingExtension
newSAMLAssertionFeatureBinding, newUsernameTokenFeatureBinding, newX509CertificateFeatureBinding
-
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
-
equals
public boolean equals(WSSPolicy policy)
Equals operator- Specified by:
equalsin classWSSPolicy- Parameters:
policy-WSSPolicyto be compared for equality- Returns:
- true if the policy is equal to this policy
- See Also:
SignaturePolicy,EncryptionPolicy,AuthenticationTokenPolicy,PrivateKeyBinding,SymmetricKeyBinding
-
equalsIgnoreTargets
public boolean equalsIgnoreTargets(WSSPolicy policy)
- Specified by:
equalsIgnoreTargetsin classWSSPolicy
-
clone
public Object clone()
Clone operator- Specified by:
clonein classWSSPolicy- Returns:
- a clone of this AuthenticationTokenPolicy
- See Also:
SignaturePolicy,EncryptionPolicy,AuthenticationTokenPolicy
-
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
-
-