Class 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 Detail

      • FeatureBinding

        public FeatureBinding()
        default constructor
    • 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
      • 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)