Class Encryption

java.lang.Object
swiss.trustbroker.federation.xmlconfig.Encryption
All Implemented Interfaces:
Serializable

public class Encryption extends Object implements Serializable
This class describes the configuration of the SAML encryption for an RP.
See Also:
  • Constructor Details

    • Encryption

      public Encryption()
    • Encryption

      public Encryption(String dataEncryptionAlgorithm, String keyEncryptionAlgorithm, EncryptionKeyPlacement keyPlacement, EncryptionKeyInfo keyInfo)
      Creates a new Encryption instance.
      Parameters:
      dataEncryptionAlgorithm - Data encryption algorithm.
      Default: http://www.w3.org/2001/04/xmlenc#aes256-cbc
      keyEncryptionAlgorithm - Key encryption algorithm.
      Default: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
      keyPlacement - Key placement (PEER, INLINE).
      Default: PEER
      keyInfo - Value emitted in Key Info (CERTIFICATE, SKI).
      Default: CERTIFICATE
      Since:
      1.10.0
  • Method Details

    • builder

      public static Encryption.EncryptionBuilder builder()
    • getDataEncryptionAlgorithm

      public String getDataEncryptionAlgorithm()
      Data encryption algorithm.
      Default: http://www.w3.org/2001/04/xmlenc#aes256-cbc
    • getKeyEncryptionAlgorithm

      public String getKeyEncryptionAlgorithm()
      Key encryption algorithm.
      Default: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
    • getKeyPlacement

      public EncryptionKeyPlacement getKeyPlacement()
      Key placement (PEER, INLINE).
      Default: PEER
    • getKeyInfo

      public EncryptionKeyInfo getKeyInfo()
      Value emitted in Key Info (CERTIFICATE, SKI).
      Default: CERTIFICATE
      Since:
      1.10.0
    • setDataEncryptionAlgorithm

      public void setDataEncryptionAlgorithm(String dataEncryptionAlgorithm)
      Data encryption algorithm.
      Default: http://www.w3.org/2001/04/xmlenc#aes256-cbc
    • setKeyEncryptionAlgorithm

      public void setKeyEncryptionAlgorithm(String keyEncryptionAlgorithm)
      Key encryption algorithm.
      Default: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
    • setKeyPlacement

      public void setKeyPlacement(EncryptionKeyPlacement keyPlacement)
      Key placement (PEER, INLINE).
      Default: PEER
    • setKeyInfo

      public void setKeyInfo(EncryptionKeyInfo keyInfo)
      Value emitted in Key Info (CERTIFICATE, SKI).
      Default: CERTIFICATE
      Since:
      1.10.0
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object