public class

PKIArchiveControlBuilder

extends Object
java.lang.Object
   ↳ org.bouncycastle.cert.crmf.PKIArchiveControlBuilder
Known Direct Subclasses

Class Overview

Builder for a PKIArchiveControl structure.

Summary

Public Constructors
PKIArchiveControlBuilder(PrivateKeyInfo privateKeyInfo, GeneralName generalName)
Basic constructor - specify the contents of the PKIArchiveControl structure.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PKIArchiveControlBuilder (PrivateKeyInfo privateKeyInfo, 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.

Public Methods

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.

public PKIArchiveControl build (OutputEncryptor contentEncryptor)

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.