public class BcEncryptedValueBuilder extends EncryptedValueBuilder
Constructor and Description |
---|
BcEncryptedValueBuilder(KeyWrapper wrapper,
OutputEncryptor encryptor) |
Modifier and Type | Method and Description |
---|---|
EncryptedValue |
build(AsymmetricKeyParameter privateKey)
Build an EncryptedValue structure containing the private key details contained in
the passed PrivateKey.
|
EncryptedValue |
build(X509Certificate certificate)
Build an EncryptedValue structure containing the passed in certificate.
|
build, build, build
public BcEncryptedValueBuilder(KeyWrapper wrapper, OutputEncryptor encryptor)
public EncryptedValue build(X509Certificate certificate) throws CertificateEncodingException, CRMFException
certificate
- the certificate to be encrypted.CRMFException
- on a failure to encrypt the data, or wrap the symmetric key for this value.CertificateEncodingException
public EncryptedValue build(AsymmetricKeyParameter privateKey) throws CRMFException, IOException
privateKey
- a private key parameter.CRMFException
- on a failure to encrypt the data, or wrap the symmetric key for this value.IOException
Copyright © 2021 BouncyCastle.org. All rights reserved.