Package com.sun.xml.wss.impl.policy.mls
Class EncryptionPolicy.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.EncryptionPolicy.FeatureBinding
-
- All Implemented Interfaces:
SecurityPolicy
,Cloneable
- Enclosing class:
- EncryptionPolicy
public static class EncryptionPolicy.FeatureBinding extends WSSPolicy
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 FeatureBinding()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTargetBinding(EncryptionTarget target)
void
addTargetBinding(Target target)
Object
clone()
clone operatorboolean
encryptsIssuedToken()
void
encryptsIssuedToken(boolean flag)
boolean
encryptsSignature()
void
encryptsSignature(boolean flag)
boolean
equals(WSSPolicy policy)
Equals operatorboolean
equalsIgnoreTargets(WSSPolicy policy)
String
getDataEncryptionAlgorithm()
ArrayList
getTargetBindings()
String
getType()
Get the type of the policy.boolean
getUseStandAloneRefList()
void
removeTargetBindings(ArrayList targets)
void
setDataEncryptionAlgorithm(String algorithm)
set the DataEncryptionAlgorithm to be usedvoid
setUseStandAloneRefList(boolean value)
-
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
-
getDataEncryptionAlgorithm
public String getDataEncryptionAlgorithm()
- Returns:
- the DataEncryptionAlgorithm
-
setDataEncryptionAlgorithm
public void setDataEncryptionAlgorithm(String algorithm)
set the DataEncryptionAlgorithm to be used- Parameters:
algorithm
- the DataEncryptionAlgorithm
-
getTargetBindings
public ArrayList getTargetBindings()
- Returns:
- Target collection
-
addTargetBinding
public void addTargetBinding(EncryptionTarget target)
- Parameters:
target
- EncryptionTarget
-
addTargetBinding
public void addTargetBinding(Target target)
-
removeTargetBindings
public void removeTargetBindings(ArrayList targets)
- Parameters:
targets
- ArrayList of all targets to be removed
-
equals
public boolean equals(WSSPolicy policy)
Equals operator- Specified by:
equals
in classWSSPolicy
- Returns:
- true if the binding is equal to this Encryption 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.FeatureBinding
- 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
-
encryptsIssuedToken
public boolean encryptsIssuedToken()
-
encryptsIssuedToken
public void encryptsIssuedToken(boolean flag)
-
encryptsSignature
public boolean encryptsSignature()
-
encryptsSignature
public void encryptsSignature(boolean flag)
-
getUseStandAloneRefList
public boolean getUseStandAloneRefList()
-
setUseStandAloneRefList
public void setUseStandAloneRefList(boolean value)
-
-