Table of Contents

Class PkiArchiveControlBuilder

Namespace
Org.BouncyCastle.Crmf
Assembly
BouncyCastle.Cryptography.dll
public class PkiArchiveControlBuilder
Inheritance
PkiArchiveControlBuilder
Inherited Members

Constructors

PkiArchiveControlBuilder(PrivateKeyInfo, GeneralName)

Basic constructor - specify the contents of the PKIArchiveControl structure.

public PkiArchiveControlBuilder(PrivateKeyInfo privateKeyInfo, GeneralName generalName)

Parameters

privateKeyInfo PrivateKeyInfo

the private key to be archived.

generalName GeneralName

the general name to be associated with the private key.

Methods

AddRecipientGenerator(RecipientInfoGenerator)

Add a recipient generator to this control.

public PkiArchiveControlBuilder AddRecipientGenerator(RecipientInfoGenerator recipientGen)

Parameters

recipientGen RecipientInfoGenerator

recipient generator created for a specific recipient.

Returns

PkiArchiveControlBuilder

this builder object.

Build(ICipherBuilderWithKey)

Build the PKIArchiveControl using the passed in encryptor to encrypt its contents.

public PkiArchiveControl Build(ICipherBuilderWithKey contentEncryptor)

Parameters

contentEncryptor ICipherBuilderWithKey

a suitable content encryptor.

Returns

PkiArchiveControl

a PKIArchiveControl object.