Class JcaEncryptedValueBuilder


  • public class JcaEncryptedValueBuilder
    extends EncryptedValueBuilder
    JCA convenience class for EncryptedValueBuilder
    • Method Detail

      • build

        public org.bouncycastle.asn1.crmf.EncryptedValue build​(PrivateKey privateKey)
                                                        throws CertificateEncodingException,
                                                               CRMFException
        Build an EncryptedValue structure containing the private key details contained in the passed PrivateKey.
        Parameters:
        privateKey - the asymmetric private key.
        Returns:
        an EncryptedValue containing an EncryptedPrivateKeyInfo structure.
        Throws:
        CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.
        CertificateEncodingException