public class EncryptedValueBuilder extends Object
| Constructor and Description |
|---|
EncryptedValueBuilder(KeyWrapper wrapper,
OutputEncryptor encryptor)
Create a builder that makes EncryptedValue structures.
|
EncryptedValueBuilder(KeyWrapper wrapper,
OutputEncryptor encryptor,
EncryptedValuePadder padder)
Create a builder that makes EncryptedValue structures with fixed length blocks padded using the passed in padder.
|
| Modifier and Type | Method and Description |
|---|---|
EncryptedValue |
build(char[] revocationPassphrase)
Build an EncryptedValue structure containing the passed in pass phrase.
|
EncryptedValue |
build(PrivateKeyInfo privateKeyInfo)
Build an EncryptedValue structure containing the private key contained in
the passed info structure.
|
EncryptedValue |
build(X509CertificateHolder holder)
Build an EncryptedValue structure containing the certificate contained in
the passed in holder.
|
public EncryptedValueBuilder(KeyWrapper wrapper, OutputEncryptor encryptor)
wrapper - a wrapper for key used to encrypt the actual data contained in the EncryptedValue.encryptor - an output encryptor to encrypt the actual data contained in the EncryptedValue.public EncryptedValueBuilder(KeyWrapper wrapper, OutputEncryptor encryptor, EncryptedValuePadder padder)
wrapper - a wrapper for key used to encrypt the actual data contained in the EncryptedValue.encryptor - an output encryptor to encrypt the actual data contained in the EncryptedValue.padder - a padder to ensure that the EncryptedValue created will always be a constant length.public EncryptedValue build(char[] revocationPassphrase) throws CRMFException
revocationPassphrase - a revocation pass phrase.CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.public EncryptedValue build(X509CertificateHolder holder) throws CRMFException
holder - a holder containing a certificate.CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.public EncryptedValue build(PrivateKeyInfo privateKeyInfo) throws CRMFException
privateKeyInfo - a PKCS#8 private key info structure.CRMFException - on a failure to encrypt the data, or wrap the symmetric key for this value.Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.