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
privateKeyInfoPrivateKeyInfothe private key to be archived.
generalNameGeneralNamethe 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
recipientGenRecipientInfoGeneratorrecipient 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
contentEncryptorICipherBuilderWithKeya suitable content encryptor.
Returns
- PkiArchiveControl
a PKIArchiveControl object.