Package org.bouncycastle.cert.crmf
Class PKIArchiveControlBuilder
- java.lang.Object
 - 
- org.bouncycastle.cert.crmf.PKIArchiveControlBuilder
 
 
- 
- Direct Known Subclasses:
 JcaPKIArchiveControlBuilder
public class PKIArchiveControlBuilder extends java.lang.ObjectBuilder for a PKIArchiveControl structure. 
- 
- 
Constructor Summary
Constructors Constructor Description PKIArchiveControlBuilder(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo, org.bouncycastle.asn1.x509.GeneralName generalName)Basic constructor - specify the contents of the PKIArchiveControl structure. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PKIArchiveControlBuilderaddRecipientGenerator(RecipientInfoGenerator recipientGen)Add a recipient generator to this control.PKIArchiveControlbuild(OutputEncryptor contentEncryptor)Build the PKIArchiveControl using the passed in encryptor to encrypt its contents. 
 - 
 
- 
- 
Constructor Detail
- 
PKIArchiveControlBuilder
public PKIArchiveControlBuilder(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo, org.bouncycastle.asn1.x509.GeneralName generalName)Basic constructor - specify the contents of the PKIArchiveControl structure.- Parameters:
 privateKeyInfo- the private key to be archived.generalName- the general name to be associated with the private key.
 
 - 
 
- 
Method Detail
- 
addRecipientGenerator
public PKIArchiveControlBuilder addRecipientGenerator(RecipientInfoGenerator recipientGen)
Add a recipient generator to this control.- Parameters:
 recipientGen- recipient generator created for a specific recipient.- Returns:
 - this builder object.
 
 
- 
build
public PKIArchiveControl build(OutputEncryptor contentEncryptor) throws CMSException
Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.- Parameters:
 contentEncryptor- a suitable content encryptor.- Returns:
 - a PKIArchiveControl object.
 - Throws:
 CMSException- in the event the build fails.
 
 - 
 
 -