Package com.sun.xml.wss.impl.policy.mls
Class EncryptionPolicy
- 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.EncryptionPolicy
-
- All Implemented Interfaces:
SecurityPolicy
,Cloneable
public class EncryptionPolicy extends WSSKeyBindingExtension
Objects of this class represent a policy for Encrypting parts of a SOAP Message. The Message Parts to be encrypted and the Data Encryption Algorithm to be used 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. Allowed KeyBindings for an EncryptionPolicy include the following :- AuthenticationTokenPolicy.X509CertificateBinding
- AuthenticationTokenPolicy.SAMLAssertionBinding
- SymmetricKeyBinding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptionPolicy.FeatureBinding
A class representing FeatureBindings for an EncryptionPolicy The FeatureBinding would contain information about the MessageParts to be Encrypted, The data encryption algorithm to be used.
-
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 EncryptionPolicy()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
clone operatorboolean
equals(WSSPolicy policy)
Equals operatorboolean
equalsIgnoreTargets(WSSPolicy policy)
String
getType()
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
-
equals
public boolean equals(WSSPolicy policy)
Equals operator- Specified by:
equals
in classWSSPolicy
- 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 classWSSPolicy
-
clone
public Object clone()
clone operator- Specified by:
clone
in classWSSPolicy
- Returns:
- a clone of this EncryptionPolicy
- See Also:
SignaturePolicy
,EncryptionPolicy
,AuthenticationTokenPolicy
-
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
-
-