public class JcaEncryptedValueBuilder extends EncryptedValueBuilder
| Constructor and Description |
|---|
JcaEncryptedValueBuilder(org.bouncycastle.operator.KeyWrapper wrapper,
org.bouncycastle.operator.OutputEncryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
EncryptedValue |
build(java.security.PrivateKey privateKey)
Build an EncryptedValue structure containing the private key details contained in
the passed PrivateKey.
|
EncryptedValue |
build(java.security.cert.X509Certificate certificate)
Build an EncryptedValue structure containing the passed in certificate.
|
build, buildpublic JcaEncryptedValueBuilder(org.bouncycastle.operator.KeyWrapper wrapper,
org.bouncycastle.operator.OutputEncryptor encryptor)
public EncryptedValue build(java.security.cert.X509Certificate certificate)
throws java.security.cert.CertificateEncodingException,
CRMFException
build in class EncryptedValueBuildercertificate - the certificate to be encrypted.CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.java.security.cert.CertificateEncodingExceptionpublic EncryptedValue build(java.security.PrivateKey privateKey)
throws java.security.cert.CertificateEncodingException,
CRMFException
build in class EncryptedValueBuilderprivateKey - a PKCS#8 private key info structure.CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.java.security.cert.CertificateEncodingException