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.
  • Constructor Details

    • FeatureBinding

      public FeatureBinding()
      default constructor
  • Method Details

    • 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 class WSSPolicy
      Returns:
      true if the binding is equal to this Encryption Policy
      See Also:
    • equalsIgnoreTargets

      public boolean equalsIgnoreTargets(WSSPolicy policy)
      Specified by:
      equalsIgnoreTargets in class WSSPolicy
    • clone

      public Object clone()
      clone operator
      Specified by:
      clone in class WSSPolicy
      Returns:
      a clone of this EncryptionPolicy.FeatureBinding
      See Also:
    • 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)