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

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.MandatoryTargetPolicy
All Implemented Interfaces:
SecurityPolicy, Cloneable

public class MandatoryTargetPolicy
extends WSSPolicy

Represents mandatory header elements that need to present in the message.

Author:
K.Venugopal@sun.com

Nested Class Summary
static class MandatoryTargetPolicy.FeatureBinding
           
 
Field Summary
 
Fields inherited from class com.sun.xml.wss.impl.policy.mls.WSSPolicy
_featureBinding, _isOptional, _keyBinding, _policyIdentifier, bsp, UUID
 
Fields inherited from class com.sun.xml.wss.impl.policy.MLSPolicy
readonly
 
Constructor Summary
MandatoryTargetPolicy()
          Creates a new instance of MandatoryTargetPolicy
 
Method Summary
 Object clone()
          clone operatror
 boolean equals(WSSPolicy policy)
          equals operator
 boolean equalsIgnoreTargets(WSSPolicy policy)
           
 String getType()
          Get the type of the policy.
 
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandatoryTargetPolicy

public MandatoryTargetPolicy()
Creates a new instance of MandatoryTargetPolicy

Method Detail

clone

public Object clone()
Description copied from class: WSSPolicy
clone operatror

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

equals

public boolean equals(WSSPolicy policy)
Description copied from class: WSSPolicy
equals operator

Specified by:
equals in class WSSPolicy
Parameters:
policy -
Returns:
true of 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
Parameters:
policy -
Returns:
true if argument policy is equal to this policy ignoring targets

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


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.