JcaPKIArchiveControlBuilderpublic class PKIArchiveControlBuilder
extends java.lang.Object
| Constructor | Description |
|---|---|
PKIArchiveControlBuilder(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo,
org.bouncycastle.asn1.x509.GeneralName generalName) |
Basic constructor - specify the contents of the PKIArchiveControl structure.
|
| Modifier and Type | Method | Description |
|---|---|---|
PKIArchiveControlBuilder |
addRecipientGenerator(RecipientInfoGenerator recipientGen) |
Add a recipient generator to this control.
|
PKIArchiveControl |
build(OutputEncryptor contentEncryptor) |
Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.
|
public PKIArchiveControlBuilder(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo,
org.bouncycastle.asn1.x509.GeneralName generalName)
privateKeyInfo - the private key to be archived.generalName - the general name to be associated with the private key.public PKIArchiveControlBuilder addRecipientGenerator(RecipientInfoGenerator recipientGen)
recipientGen - recipient generator created for a specific recipient.public PKIArchiveControl build(OutputEncryptor contentEncryptor) throws CMSException
contentEncryptor - a suitable content encryptor.CMSException - in the event the build fails.