Class Encryption
java.lang.Object
swiss.trustbroker.federation.xmlconfig.Encryption
- All Implemented Interfaces:
Serializable
This class describes the configuration of the SAML encryption for an RP.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEncryption(String dataEncryptionAlgorithm, String keyEncryptionAlgorithm, EncryptionKeyPlacement keyPlacement, EncryptionKeyInfo keyInfo) Creates a newEncryptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic Encryption.EncryptionBuilderbuilder()protected booleanbooleanData encryption algorithm.Key encryption algorithm.Value emitted in Key Info (CERTIFICATE, SKI).Key placement (PEER, INLINE).inthashCode()voidsetDataEncryptionAlgorithm(String dataEncryptionAlgorithm) Data encryption algorithm.voidsetKeyEncryptionAlgorithm(String keyEncryptionAlgorithm) Key encryption algorithm.voidsetKeyInfo(EncryptionKeyInfo keyInfo) Value emitted in Key Info (CERTIFICATE, SKI).voidsetKeyPlacement(EncryptionKeyPlacement keyPlacement) Key placement (PEER, INLINE).toString()
-
Constructor Details
-
Encryption
public Encryption() -
Encryption
public Encryption(String dataEncryptionAlgorithm, String keyEncryptionAlgorithm, EncryptionKeyPlacement keyPlacement, EncryptionKeyInfo keyInfo) Creates a newEncryptioninstance.- Parameters:
dataEncryptionAlgorithm- Data encryption algorithm.
Default: http://www.w3.org/2001/04/xmlenc#aes256-cbckeyEncryptionAlgorithm- Key encryption algorithm.
Default: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1pkeyPlacement- Key placement (PEER, INLINE).
Default: PEERkeyInfo- Value emitted in Key Info (CERTIFICATE, SKI).
Default: CERTIFICATE- Since:
- 1.10.0
-
-
Method Details
-
builder
-
getDataEncryptionAlgorithm
Data encryption algorithm.
Default: http://www.w3.org/2001/04/xmlenc#aes256-cbc -
getKeyEncryptionAlgorithm
Key encryption algorithm.
Default: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p -
getKeyPlacement
Key placement (PEER, INLINE).
Default: PEER -
getKeyInfo
Value emitted in Key Info (CERTIFICATE, SKI).
Default: CERTIFICATE- Since:
- 1.10.0
-
setDataEncryptionAlgorithm
Data encryption algorithm.
Default: http://www.w3.org/2001/04/xmlenc#aes256-cbc -
setKeyEncryptionAlgorithm
Key encryption algorithm.
Default: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p -
setKeyPlacement
Key placement (PEER, INLINE).
Default: PEER -
setKeyInfo
Value emitted in Key Info (CERTIFICATE, SKI).
Default: CERTIFICATE- Since:
- 1.10.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-