public class PKIArchiveControlBuilder extends Object
| Constructor and Description |
|---|
PKIArchiveControlBuilder(PrivateKeyInfo privateKeyInfo,
GeneralName generalName)
Basic constructor - specify the contents of the PKIArchiveControl structure.
|
| Modifier and Type | Method and 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(PrivateKeyInfo privateKeyInfo, 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.Copyright © 2015. All rights reserved.