public class EnvelopingParameters
extends java.lang.Object
Constructor and Description |
---|
EnvelopingParameters(java.security.cert.X509Certificate recipientCert,
AlgorithmIdentifier encryptionAlgId)
Creates an
EnvelopingParameters object specifying the recipient
certificate and the encryption algorithm. |
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getEncryptionAlgId()
Returns the content encryption algorithm for the enveloped data.
|
java.security.cert.X509Certificate |
getRecipientCert()
Returns the recipient's certificate.
|
void |
setEncryptionAlgId(AlgorithmIdentifier digestAlgId)
Sets the content encryption algorithm.
|
void |
setRecipientCert(java.security.cert.X509Certificate recipientCert)
Sets the recipient's certificate.
|
public EnvelopingParameters(java.security.cert.X509Certificate recipientCert, AlgorithmIdentifier encryptionAlgId)
EnvelopingParameters
object specifying the recipient
certificate and the encryption algorithm.
Supported algorithms:
recipientCert
- The recipient's X.509 certificate.encryptionAlgId
- The encryption algorithm.public void setRecipientCert(java.security.cert.X509Certificate recipientCert)
recipientCert
- The recipient's X509 certificate.public java.security.cert.X509Certificate getRecipientCert()
public void setEncryptionAlgId(AlgorithmIdentifier digestAlgId)
digestAlgId
- The content encryption algorithm for the enveloped data.public AlgorithmIdentifier getEncryptionAlgId()