Class PkiArchiveControl
- Namespace
- Org.BouncyCastle.Crmf
- Assembly
- BouncyCastle.Cryptography.dll
public class PkiArchiveControl : IControl
- Inheritance
-
PkiArchiveControl
- Implements
- Inherited Members
Constructors
PkiArchiveControl(PkiArchiveOptions)
Basic constructor - build from an PKIArchiveOptions structure.
public PkiArchiveControl(PkiArchiveOptions pkiArchiveOptions)
Parameters
pkiArchiveOptionsPkiArchiveOptionsthe ASN.1 structure that will underlie this control.
Fields
archiveRemGenPrivKey
public static readonly int archiveRemGenPrivKey
Field Value
encryptedPrivKey
public static readonly int encryptedPrivKey
Field Value
keyGenParameters
public static readonly int keyGenParameters
Field Value
Properties
ArchiveType
Return the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey.
public int ArchiveType { get; }
Property Value
- int
the archive control type.
EnvelopedData
Return whether this control contains enveloped data.
[Obsolete("Use 'IsEnvelopedData' instead")]
public bool EnvelopedData { get; }
Property Value
- bool
true if the control contains enveloped data, false otherwise.
Type
Return the type of this control.
public DerObjectIdentifier Type { get; }
Property Value
- DerObjectIdentifier
CRMFObjectIdentifiers.id_regCtrl_pkiArchiveOptions
Value
Return the underlying ASN.1 object.
public Asn1Encodable Value { get; }
Property Value
- Asn1Encodable
a PKIArchiveOptions structure.
Methods
GetEnvelopedData()
Return the enveloped data structure contained in this control.
public CmsEnvelopedData GetEnvelopedData()
Returns
- CmsEnvelopedData
a CMSEnvelopedData object.
IsEnvelopedData()
Return whether this control contains enveloped data.
public bool IsEnvelopedData()
Returns
- bool
true if the control contains enveloped data, false otherwise.