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

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

public static class MandatoryTargetPolicy.FeatureBinding
extends WSSPolicy


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.FeatureBinding()
           
 
Method Summary
 void addTargetBinding(Target target)
          adds the Target representing the Header element that must be present in the message.
 Object clone()
          clone operatror
 boolean equals(WSSPolicy policy)
          equals operator
 boolean equalsIgnoreTargets(WSSPolicy policy)
           
 List<Target> getTargetBindings()
           
 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.FeatureBinding

public MandatoryTargetPolicy.FeatureBinding()
Method Detail

addTargetBinding

public void addTargetBinding(Target target)
adds the Target representing the Header element that must be present in the message. Will by default set enforce flag on Target element to true.

Parameters:
target -

getTargetBindings

public List<Target> getTargetBindings()
Returns:
list of Target elements

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 if this policy is equal to the argument 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 this policy is equal to the argument 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:
type of the policy


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