- 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.WSSKeyBindingExtension
-
- com.sun.xml.wss.impl.policy.mls.SignaturePolicy
-
- All Implemented Interfaces:
SecurityPolicy,Cloneable
public class SignaturePolicy extends WSSKeyBindingExtension
Objects of this class represent a policy for Signing parts of a SOAP Message. The Message Parts to be signed and the Canonicalization Algorithm to be used for the ds:SignedInfo are captured as FeatureBindings of this Policy. The exact Key to be used is to be represented as a distinct KeyBinding for this policy instance. The SignatureMethod for the signature is obtained as the keyAlgorithm on the corresponding KeyBinding associated with this SignaturePolicy Allowed KeyBindings for a SignaturePolicy include the following :- AuthenticationTokenPolicy.X509CertificateBinding
- AuthenticationTokenPolicy.SAMLAssertionBinding
- SymmetricKeyBinding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignaturePolicy.FeatureBindingA class representing FeatureBindings for a SignaturePolicy The FeatureBinding would contain information about the MessageParts to be Signed, and the CanonicalizationMethod.
-
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 SignaturePolicy()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()clone operatorbooleanequals(WSSPolicy policy)Equals operatorbooleanequalsIgnoreTargets(WSSPolicy policy)StringgetType()Get the type of the policy.-
Methods inherited from class com.sun.xml.wss.impl.policy.mls.WSSKeyBindingExtension
newDerivedTokenKeyBinding, newIssuedTokenKeyBinding, newSAMLAssertionKeyBinding, newSecureConversationTokenKeyBinding, newSymmetricKeyBinding, newUsernameTokenBindingKeyBinding, newX509CertificateKeyBinding
-
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
-
clone
public Object clone()
clone operator- Specified by:
clonein classWSSPolicy- Returns:
- a clone of this SignaturePolicy
- See Also:
SignaturePolicy,EncryptionPolicy,AuthenticationTokenPolicy
-
equals
public boolean equals(WSSPolicy policy)
Equals operator- Specified by:
equalsin classWSSPolicy- Parameters:
policy-WSSPolicyto 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:
equalsIgnoreTargetsin classWSSPolicy
-
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:
- the type of the policy
-
-