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 class
AuthenticationTokenPolicy.KerberosTokenBinding
A policy representing Kerberos Token.static class
AuthenticationTokenPolicy.KeyValueTokenBinding
A policy representing a RSAKeyPair.static class
AuthenticationTokenPolicy.SAMLAssertionBinding
A policy representing a SAML Assertion.static class
AuthenticationTokenPolicy.UsernameTokenBinding
A policy representing a WSS UsernameToken.static class
AuthenticationTokenPolicy.X509CertificateBinding
A 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 Object
clone()
Clone operatorboolean
equals(WSSPolicy policy)
Equals operatorboolean
equalsIgnoreTargets(WSSPolicy policy)
String
getType()
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:
equals
in classWSSPolicy
- Parameters:
policy
-WSSPolicy
to 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:
equalsIgnoreTargets
in classWSSPolicy
-
clone
public Object clone()
Clone operator- Specified by:
clone
in classWSSPolicy
- Returns:
- a clone of this AuthenticationTokenPolicy
- See Also:
SignaturePolicy
,EncryptionPolicy
,AuthenticationTokenPolicy
-
getType
public String 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
-
-