Package org.opensaml.xmlsec
Class EncryptionParameters
java.lang.Object
org.opensaml.xmlsec.EncryptionParameters
The effective parameters to use when generating encrypted XML.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The EncryptedData encryption algorithm URI.private Credential
The EncryptedData encryption credential.private KeyInfoGenerator
The EncryptedData KeyInfoGenerator.private String
The EncryptedKey encryption algorithm URI.private Credential
The EncryptedKey encryption credential.private KeyInfoGenerator
The EncryptedKey KeyInfoGenerator.private RSAOAEPParameters
RSA OAEP parameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the encryption algorithm URI to use when encrypting the EncryptedData.Get the encryption credential to use when encrypting the EncryptedData.Get the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.Get the encryption algorithm URI to use when encrypting the EncryptedKey.Get the encryption credential to use when encrypting the EncryptedKey.Get the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.Get the instance ofRSAOAEPParameters
.void
Set the encryption algorithm URI to use when encrypting the EncryptedData.void
setDataEncryptionCredential
(Credential credential) Set the encryption credential to use when encrypting the EncryptedData.void
setDataKeyInfoGenerator
(KeyInfoGenerator generator) Set the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.void
Set the encryption algorithm URI to use when encrypting the EncryptedKey.void
setKeyTransportEncryptionCredential
(Credential credential) Set the encryption credential to use when encrypting the EncryptedKey.void
setKeyTransportKeyInfoGenerator
(KeyInfoGenerator generator) Set the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.void
Set the instance ofRSAOAEPParameters
.
-
Field Details
-
dataEncryptionCredential
The EncryptedData encryption credential. -
keyTransportEncryptionCredential
The EncryptedKey encryption credential. -
dataEncryptionAlgorithmURI
The EncryptedData encryption algorithm URI. -
keyTransportEncryptionAlgorithmURI
The EncryptedKey encryption algorithm URI. -
dataKeyInfoGenerator
The EncryptedData KeyInfoGenerator. -
keyTransportKeyInfoGenerator
The EncryptedKey KeyInfoGenerator. -
rsaOAEPParameters
RSA OAEP parameters.
-
-
Constructor Details
-
EncryptionParameters
public EncryptionParameters()
-
-
Method Details
-
getDataEncryptionCredential
Get the encryption credential to use when encrypting the EncryptedData.- Returns:
- the encryption credential
-
setDataEncryptionCredential
Set the encryption credential to use when encrypting the EncryptedData.- Parameters:
credential
- the encryption credential
-
getKeyTransportEncryptionCredential
Get the encryption credential to use when encrypting the EncryptedKey.- Returns:
- the encryption credential
-
setKeyTransportEncryptionCredential
Set the encryption credential to use when encrypting the EncryptedKey.- Parameters:
credential
- the encryption credential
-
getDataEncryptionAlgorithm
Get the encryption algorithm URI to use when encrypting the EncryptedData.- Returns:
- an encryption algorithm URI
-
setDataEncryptionAlgorithm
Set the encryption algorithm URI to use when encrypting the EncryptedData.- Parameters:
uri
- an encryption algorithm URI
-
getKeyTransportEncryptionAlgorithm
Get the encryption algorithm URI to use when encrypting the EncryptedKey.- Returns:
- an encryption algorithm URI
-
setKeyTransportEncryptionAlgorithm
Set the encryption algorithm URI to use when encrypting the EncryptedKey.- Parameters:
uri
- an encryption algorithm URI
-
getDataKeyInfoGenerator
Get the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.- Returns:
- the KeyInfoGenerator instance
-
setDataKeyInfoGenerator
Set the KeyInfoGenerator to use when generating the EncryptedData/KeyInfo.- Parameters:
generator
- the KeyInfoGenerator instance
-
getKeyTransportKeyInfoGenerator
Get the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.- Returns:
- the KeyInfoGenerator instance
-
setKeyTransportKeyInfoGenerator
Set the KeyInfoGenerator to use when generating the EncryptedKey/KeyInfo.- Parameters:
generator
- the KeyInfoGenerator instance
-
getRSAOAEPParameters
Get the instance ofRSAOAEPParameters
.- Returns:
- the parameters instance
-
setRSAOAEPParameters
Set the instance ofRSAOAEPParameters
.- Parameters:
params
- the new parameters instance
-