public class DataEncryptionParameters extends Object
Constructor and Description |
---|
DataEncryptionParameters()
Constructor.
|
DataEncryptionParameters(EncryptionParameters params)
Convenience constructor which allows copying the relevant data encryption parameters from
an instance of
EncryptionParameters . |
Modifier and Type | Method and 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.
|
public DataEncryptionParameters()
public DataEncryptionParameters(@Nonnull EncryptionParameters params)
EncryptionParameters
.params
- the encryption parameters instance@Nullable public String getAlgorithm()
public void setAlgorithm(@Nullable String newAlgorithm)
newAlgorithm
- the algorithm URI used to encrypt@Nullable public Credential getEncryptionCredential()
public void setEncryptionCredential(@Nullable Credential newEncryptionCredential)
newEncryptionCredential
- the credential used to encrypt@Nullable public KeyInfoGenerator getKeyInfoGenerator()
public void setKeyInfoGenerator(@Nullable KeyInfoGenerator newKeyInfoGenerator)
newKeyInfoGenerator
- the new generator instanceCopyright © 2017. All rights reserved.