Package org.opensaml.xmlsec
Class EncryptionParameters
- java.lang.Object
-
- org.opensaml.xmlsec.EncryptionParameters
-
public class EncryptionParameters extends Object
The effective parameters to use when generating encrypted XML.
-
-
Field Summary
Fields Modifier and Type Field Description private StringdataEncryptionAlgorithmURIThe EncryptedData encryption algorithm URI.private org.opensaml.security.credential.CredentialdataEncryptionCredentialThe EncryptedData encryption credential.private KeyInfoGeneratordataKeyInfoGeneratorThe EncryptedData KeyInfoGenerator.private StringkeyTransportEncryptionAlgorithmURIThe EncryptedKey encryption algorithm URI.private org.opensaml.security.credential.CredentialkeyTransportEncryptionCredentialThe EncryptedKey encryption credential.private KeyInfoGeneratorkeyTransportKeyInfoGeneratorThe EncryptedKey KeyInfoGenerator.private RSAOAEPParametersrsaOAEPParametersRSA OAEP parameters.
-
Constructor Summary
Constructors Constructor Description EncryptionParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDataEncryptionAlgorithm()Get the encryption algorithm URI to use when encrypting the EncryptedData.org.opensaml.security.credential.CredentialgetDataEncryptionCredential()Get the encryption credential to use when encrypting the EncryptedData.KeyInfoGeneratorgetDataKeyInfoGenerator()Get the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.StringgetKeyTransportEncryptionAlgorithm()Get the encryption algorithm URI to use when encrypting the EncryptedKey.org.opensaml.security.credential.CredentialgetKeyTransportEncryptionCredential()Get the encryption credential to use when encrypting the EncryptedKey.KeyInfoGeneratorgetKeyTransportKeyInfoGenerator()Get the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.RSAOAEPParametersgetRSAOAEPParameters()Get the instance ofRSAOAEPParameters.voidsetDataEncryptionAlgorithm(String uri)Set the encryption algorithm URI to use when encrypting the EncryptedData.voidsetDataEncryptionCredential(org.opensaml.security.credential.Credential credential)Set the encryption credential to use when encrypting the EncryptedData.voidsetDataKeyInfoGenerator(KeyInfoGenerator generator)Set the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.voidsetKeyTransportEncryptionAlgorithm(String uri)Set the encryption algorithm URI to use when encrypting the EncryptedKey.voidsetKeyTransportEncryptionCredential(org.opensaml.security.credential.Credential credential)Set the encryption credential to use when encrypting the EncryptedKey.voidsetKeyTransportKeyInfoGenerator(KeyInfoGenerator generator)Set the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.voidsetRSAOAEPParameters(RSAOAEPParameters params)Set the instance ofRSAOAEPParameters.
-
-
-
Field Detail
-
dataEncryptionCredential
private org.opensaml.security.credential.Credential dataEncryptionCredential
The EncryptedData encryption credential.
-
keyTransportEncryptionCredential
private org.opensaml.security.credential.Credential keyTransportEncryptionCredential
The EncryptedKey encryption credential.
-
dataEncryptionAlgorithmURI
private String dataEncryptionAlgorithmURI
The EncryptedData encryption algorithm URI.
-
keyTransportEncryptionAlgorithmURI
private String keyTransportEncryptionAlgorithmURI
The EncryptedKey encryption algorithm URI.
-
dataKeyInfoGenerator
private KeyInfoGenerator dataKeyInfoGenerator
The EncryptedData KeyInfoGenerator.
-
keyTransportKeyInfoGenerator
private KeyInfoGenerator keyTransportKeyInfoGenerator
The EncryptedKey KeyInfoGenerator.
-
rsaOAEPParameters
private RSAOAEPParameters rsaOAEPParameters
RSA OAEP parameters.
-
-
Method Detail
-
getDataEncryptionCredential
@Nullable public org.opensaml.security.credential.Credential getDataEncryptionCredential()
Get the encryption credential to use when encrypting the EncryptedData.- Returns:
- the encryption credential
-
setDataEncryptionCredential
public void setDataEncryptionCredential(@Nullable org.opensaml.security.credential.Credential credential)Set the encryption credential to use when encrypting the EncryptedData.- Parameters:
credential- the encryption credential
-
getKeyTransportEncryptionCredential
@Nullable public org.opensaml.security.credential.Credential getKeyTransportEncryptionCredential()
Get the encryption credential to use when encrypting the EncryptedKey.- Returns:
- the encryption credential
-
setKeyTransportEncryptionCredential
public void setKeyTransportEncryptionCredential(@Nullable org.opensaml.security.credential.Credential credential)Set the encryption credential to use when encrypting the EncryptedKey.- Parameters:
credential- the encryption credential
-
getDataEncryptionAlgorithm
@Nullable public String getDataEncryptionAlgorithm()
Get the encryption algorithm URI to use when encrypting the EncryptedData.- Returns:
- an encryption algorithm URI
-
setDataEncryptionAlgorithm
public void setDataEncryptionAlgorithm(@Nullable String uri)Set the encryption algorithm URI to use when encrypting the EncryptedData.- Parameters:
uri- an encryption algorithm URI
-
getKeyTransportEncryptionAlgorithm
@Nullable public String getKeyTransportEncryptionAlgorithm()
Get the encryption algorithm URI to use when encrypting the EncryptedKey.- Returns:
- an encryption algorithm URI
-
setKeyTransportEncryptionAlgorithm
public void setKeyTransportEncryptionAlgorithm(@Nullable String uri)Set the encryption algorithm URI to use when encrypting the EncryptedKey.- Parameters:
uri- an encryption algorithm URI
-
getDataKeyInfoGenerator
@Nullable public KeyInfoGenerator getDataKeyInfoGenerator()
Get the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.- Returns:
- the KeyInfoGenerator instance
-
setDataKeyInfoGenerator
public void setDataKeyInfoGenerator(@Nullable KeyInfoGenerator generator)Set the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.- Parameters:
generator- the KeyInfoGenerator instance
-
getKeyTransportKeyInfoGenerator
@Nullable public KeyInfoGenerator getKeyTransportKeyInfoGenerator()
Get the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.- Returns:
- the KeyInfoGenerator instance
-
setKeyTransportKeyInfoGenerator
public void setKeyTransportKeyInfoGenerator(@Nullable KeyInfoGenerator generator)Set the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.- Parameters:
generator- the KeyInfoGenerator instance
-
getRSAOAEPParameters
@Nullable public RSAOAEPParameters getRSAOAEPParameters()
Get the instance ofRSAOAEPParameters.- Returns:
- the parameters instance
-
setRSAOAEPParameters
public void setRSAOAEPParameters(@Nullable RSAOAEPParameters params)Set the instance ofRSAOAEPParameters.- Parameters:
params- the new parameters instance
-
-