com.sun.xml.wss.impl.policy.mls
Class AuthenticationTokenPolicy

java.lang.Object
  extended by com.sun.xml.wss.impl.policy.MLSPolicy
      extended by com.sun.xml.wss.impl.policy.mls.WSSPolicy
          extended by com.sun.xml.wss.impl.policy.mls.WSSFeatureBindingExtension
              extended by com.sun.xml.wss.impl.policy.mls.AuthenticationTokenPolicy
All Implemented Interfaces:
SecurityPolicy, java.lang.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 :


Nested Class Summary
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.
 
Constructor Summary
AuthenticationTokenPolicy()
          Default Constructor
 
Method Summary
 java.lang.Object clone()
          Clone operator
 boolean equals(WSSPolicy policy)
          Equals operator
 boolean equalsIgnoreTargets(WSSPolicy policy)
           
 java.lang.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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationTokenPolicy

public AuthenticationTokenPolicy()
Default Constructor

Method Detail

equals

public boolean equals(WSSPolicy policy)
Equals operator

Specified by:
equals in class WSSPolicy
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 class WSSPolicy

clone

public java.lang.Object clone()
Clone operator

Specified by:
clone in class WSSPolicy
Returns:
a clone of this AuthenticationTokenPolicy
See Also:
SignaturePolicy, EncryptionPolicy, AuthenticationTokenPolicy

getType

public java.lang.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


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.