public class BcEncryptedValueBuilder extends EncryptedValueBuilder
| Constructor and Description |
|---|
BcEncryptedValueBuilder(org.bouncycastle.operator.KeyWrapper wrapper,
org.bouncycastle.operator.OutputEncryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.crmf.EncryptedValue |
build(org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey)
Build an EncryptedValue structure containing the private key details contained in
the passed PrivateKey.
|
org.bouncycastle.asn1.crmf.EncryptedValue |
build(java.security.cert.X509Certificate certificate)
Build an EncryptedValue structure containing the passed in certificate.
|
build, build, buildpublic BcEncryptedValueBuilder(org.bouncycastle.operator.KeyWrapper wrapper,
org.bouncycastle.operator.OutputEncryptor encryptor)
public org.bouncycastle.asn1.crmf.EncryptedValue build(java.security.cert.X509Certificate certificate)
throws java.security.cert.CertificateEncodingException,
CRMFException
certificate - 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 org.bouncycastle.asn1.crmf.EncryptedValue build(org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey)
throws CRMFException,
java.io.IOException
privateKey - a private key parameter.CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.java.io.IOException