Class KeyEncryptionParameters
- java.lang.Object
-
- org.opensaml.xmlsec.encryption.support.DataEncryptionParameters
-
- org.opensaml.xmlsec.encryption.support.KeyEncryptionParameters
-
public class KeyEncryptionParameters extends DataEncryptionParameters
Parameters for encrypting keys.
-
-
Field Summary
Fields Modifier and Type Field Description private StringrecipientRecipient of the key.private RSAOAEPParametersrsaOAEPParametersRSA OAEP parameters.
-
Constructor Summary
Constructors Constructor Description KeyEncryptionParameters()Constructor.KeyEncryptionParameters(EncryptionParameters params, String recipientId)Convenience constructor which allows copying the relevant key encryption parameters from an instance ofEncryptionParameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRecipient()Gets the recipient of the key.RSAOAEPParametersgetRSAOAEPParameters()Get the instance ofRSAOAEPParameters.voidsetRecipient(String newRecipient)Sets the recipient of the key.voidsetRSAOAEPParameters(RSAOAEPParameters params)Set the instance ofRSAOAEPParameters.-
Methods inherited from class org.opensaml.xmlsec.encryption.support.DataEncryptionParameters
getAlgorithm, getEncryptionCredential, getKeyInfoGenerator, setAlgorithm, setEncryptionCredential, setKeyInfoGenerator
-
-
-
-
Field Detail
-
recipient
private String recipient
Recipient of the key.
-
rsaOAEPParameters
private RSAOAEPParameters rsaOAEPParameters
RSA OAEP parameters.
-
-
Constructor Detail
-
KeyEncryptionParameters
public KeyEncryptionParameters()
Constructor.
-
KeyEncryptionParameters
public KeyEncryptionParameters(EncryptionParameters params, String recipientId)
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 Detail
-
getRecipient
@Nullable public String 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
public void setRecipient(@Nullable String newRecipient)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
@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
-
-