Class DataEncryptionParameters
java.lang.Object
org.opensaml.xmlsec.encryption.support.DataEncryptionParameters
- Direct Known Subclasses:
KeyEncryptionParameters
public class DataEncryptionParameters extends Object
Parameters for encrypting XMLObjects.
-
Field Summary
Fields Modifier and Type Field Description private String
algorithm
XML Encryption algorithm URI used to encrypt.private Credential
encryptionCredential
Credential used to encrypt.private KeyInfoGenerator
keyInfoGenerator
Generator for dynamically generating a KeyInfo instance containing information from the encryption credential. -
Constructor Summary
Constructors Constructor Description DataEncryptionParameters()
Constructor.DataEncryptionParameters(EncryptionParameters params)
Convenience constructor which allows copying the relevant data encryption parameters from an instance ofEncryptionParameters
. -
Method Summary
Modifier and Type Method Description String
getAlgorithm()
Gets the XML Encryption algorithm URI used to encrypt.Credential
getEncryptionCredential()
Gets the credential used to encrypt.KeyInfoGenerator
getKeyInfoGenerator()
Gets the instance which will be used to generate a KeyInfo object from the encryption credential.void
setAlgorithm(String newAlgorithm)
Sets the XML Encryption algorithm URI used to encrypt.void
setEncryptionCredential(Credential newEncryptionCredential)
Sets the credential used to encrypt.void
setKeyInfoGenerator(KeyInfoGenerator newKeyInfoGenerator)
Sets the instance which will be used to generate a KeyInfo object from the encryption credential.
-
Field Details
-
encryptionCredential
Credential used to encrypt. -
algorithm
XML Encryption algorithm URI used to encrypt. -
keyInfoGenerator
Generator for dynamically generating a KeyInfo instance containing information from the encryption credential.
-
-
Constructor Details
-
DataEncryptionParameters
public DataEncryptionParameters()Constructor. -
DataEncryptionParameters
Convenience constructor which allows copying the relevant data encryption parameters from an instance ofEncryptionParameters
.- Parameters:
params
- the encryption parameters instance
-
-
Method Details
-
getAlgorithm
Gets the XML Encryption algorithm URI used to encrypt.- Returns:
- the algorithm URI used to encrypt, or null
-
setAlgorithm
Sets the XML Encryption algorithm URI used to encrypt.- Parameters:
newAlgorithm
- the algorithm URI used to encrypt
-
getEncryptionCredential
Gets the credential used to encrypt.- Returns:
- the credential used to encrypt, or null
-
setEncryptionCredential
Sets the credential used to encrypt.- Parameters:
newEncryptionCredential
- the credential used to encrypt
-
getKeyInfoGenerator
Gets the instance which will be used to generate a KeyInfo object from the encryption credential.- Returns:
- the generator instance, or null
-
setKeyInfoGenerator
Sets the instance which will be used to generate a KeyInfo object from the encryption credential.- Parameters:
newKeyInfoGenerator
- the new generator instance
-