Package com.sun.xml.wss.impl.policy.mls
Class MandatoryTargetPolicy.FeatureBinding
- 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.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
-
-
Constructor Summary
Constructors Constructor Description FeatureBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTargetBinding(Target target)adds the Target representing the Header element that must be present in the message.Objectclone()clone operatrorbooleanequals(WSSPolicy policy)equals operatorbooleanequalsIgnoreTargets(WSSPolicy policy)List<Target>getTargetBindings()StringgetType()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
-
-
-
-
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-
-
clone
public Object clone()
Description copied from class:WSSPolicyclone operatror- Specified by:
clonein classWSSPolicy- Returns:
- clone
- See Also:
SignaturePolicy,EncryptionPolicy,AuthenticationTokenPolicy
-
equals
public boolean equals(WSSPolicy policy)
Description copied from class:WSSPolicyequals operator- Specified by:
equalsin classWSSPolicy- 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:
equalsIgnoreTargetsin classWSSPolicy- Parameters:
policy-- Returns:
- true if this policy is equal to the argument policy ignoring targets
-
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:
- type of the policy
-
-