Class KeyEncryptionParameters
java.lang.Object
org.opensaml.xmlsec.encryption.support.DataEncryptionParameters
org.opensaml.xmlsec.encryption.support.KeyEncryptionParameters
Parameters for encrypting keys.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Recipient of the key.private RSAOAEPParameters
RSA OAEP parameters. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.KeyEncryptionParameters
(EncryptionParameters params, String recipientId) Convenience constructor which allows copying the relevant key encryption parameters from an instance ofEncryptionParameters
. -
Method Summary
Modifier and TypeMethodDescriptionGets the recipient of the key.Get the instance ofRSAOAEPParameters
.void
setRecipient
(String newRecipient) Sets the recipient of the key.void
Set the instance ofRSAOAEPParameters
.Methods inherited from class org.opensaml.xmlsec.encryption.support.DataEncryptionParameters
getAlgorithm, getEncryptionCredential, getKeyInfoGenerator, setAlgorithm, setEncryptionCredential, setKeyInfoGenerator
-
Field Details
-
recipient
Recipient of the key. -
rsaOAEPParameters
RSA OAEP parameters.
-
-
Constructor Details
-
KeyEncryptionParameters
public KeyEncryptionParameters()Constructor. -
KeyEncryptionParameters
Convenience constructor which allows copying the relevant key encryption parameters from an instance ofEncryptionParameters
.- Parameters:
params
- the encryption parameters instancerecipientId
- the recipient of the key
-
-
Method Details
-
getRecipient
Gets the recipient of the key. When generating an EncryptedKey, this will be used as the value of the Recipient attribute.- Returns:
- the recipient of the key, or null
-
setRecipient
Sets the recipient of the key. When generating an EncryptedKey, this will be used as the value of the Recipient attribute.- Parameters:
newRecipient
- the recipient of the key
-
getRSAOAEPParameters
Get the instance ofRSAOAEPParameters
.- Returns:
- the parameters instance
-
setRSAOAEPParameters
Set the instance ofRSAOAEPParameters
.- Parameters:
params
- the new parameters instance
-