<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crmf.PkiArchiveControl

public class PkiArchiveControl : IControl
public static readonly int archiveRemGenPrivKey

public static readonly int encryptedPrivKey

public static readonly int keyGenParameters

public int ArchiveType { get; }

Return the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey.

public bool EnvelopedData { get; }

Return whether this control contains enveloped data.

public DerObjectIdentifier Type { get; }

Return the type of this control.

public Asn1Encodable Value { get; }

Return the underlying ASN.1 object.

public PkiArchiveControl(PkiArchiveOptions pkiArchiveOptions)

Basic constructor - build from an PKIArchiveOptions structure.

Return the enveloped data structure contained in this control.

public bool IsEnvelopedData()

Return whether this control contains enveloped data. Only an encryptedPrivKey control can, and only when its EncryptedKey is the envelopedData choice rather than the deprecated encryptedValue.