com.sun.xml.wss.impl.policy.mls
Class EncryptionPolicy.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.EncryptionPolicy.FeatureBinding
All Implemented Interfaces:
SecurityPolicy, java.lang.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.


Constructor Summary
EncryptionPolicy.FeatureBinding()
          default constructor
 
Method Summary
 void addTargetBinding(EncryptionTarget target)
           
 void addTargetBinding(Target target)
           
 java.lang.Object clone()
          clone operator
 boolean equals(WSSPolicy policy)
          Equals operator
 boolean equalsIgnoreTargets(WSSPolicy policy)
           
 java.lang.String getDataEncryptionAlgorithm()
           
 java.util.ArrayList getTargetBindings()
           
 java.lang.String getType()
          Get the type of the policy.
 void removeTargetBindings(java.util.ArrayList targets)
           
 void setDataEncryptionAlgorithm(java.lang.String algorithm)
          set the DataEncryptionAlgorithm to be used
 
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionPolicy.FeatureBinding

public EncryptionPolicy.FeatureBinding()
default constructor

Method Detail

getDataEncryptionAlgorithm

public java.lang.String getDataEncryptionAlgorithm()
Returns:
the DataEncryptionAlgorithm

setDataEncryptionAlgorithm

public void setDataEncryptionAlgorithm(java.lang.String algorithm)
set the DataEncryptionAlgorithm to be used

Parameters:
algorithm - the DataEncryptionAlgorithm

getTargetBindings

public java.util.ArrayList getTargetBindings()
Returns:
Target collection

addTargetBinding

public void addTargetBinding(EncryptionTarget target)
Parameters:
target - EncryptionTarget

addTargetBinding

public void addTargetBinding(Target target)

removeTargetBindings

public void removeTargetBindings(java.util.ArrayList targets)
Parameters:
targets - ArrayList of all targets to be removed

equals

public boolean equals(WSSPolicy policy)
Equals operator

Specified by:
equals in class WSSPolicy
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 class WSSPolicy

clone

public java.lang.Object clone()
clone operator

Specified by:
clone in class WSSPolicy
Returns:
a clone of this EncryptionPolicy.FeatureBinding
See Also:
SignaturePolicy, EncryptionPolicy, AuthenticationTokenPolicy

getType

public java.lang.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


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.