Class PKIArchiveControl
java.lang.Object
org.bouncycastle.cert.crmf.PKIArchiveControl
- All Implemented Interfaces:
Control
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionPKIArchiveControl(org.bouncycastle.asn1.crmf.PKIArchiveOptions pkiArchiveOptions) Basic constructor - build from an PKIArchiveOptions structure. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey.Return the enveloped data structure contained in this control.org.bouncycastle.asn1.ASN1ObjectIdentifiergetType()Return the type of this control.org.bouncycastle.asn1.ASN1EncodablegetValue()Return the underlying ASN.1 object.booleanReturn whether this control contains enveloped data.
-
Field Details
-
encryptedPrivKey
public static final int encryptedPrivKey- See Also:
-
keyGenParameters
public static final int keyGenParameters- See Also:
-
archiveRemGenPrivKey
public static final int archiveRemGenPrivKey- See Also:
-
-
Constructor Details
-
PKIArchiveControl
public PKIArchiveControl(org.bouncycastle.asn1.crmf.PKIArchiveOptions pkiArchiveOptions) Basic constructor - build from an PKIArchiveOptions structure.- Parameters:
pkiArchiveOptions- the ASN.1 structure that will underlie this control.
-
-
Method Details
-
getType
-
getValue
-
getArchiveType
public int getArchiveType()Return the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey.- Returns:
- the archive control type.
-
isEnvelopedData
public boolean isEnvelopedData()Return whether this control contains enveloped data.- Returns:
- true if the control contains enveloped data, false otherwise.
-
getEnvelopedData
Return the enveloped data structure contained in this control.- Returns:
- a CMSEnvelopedData object.
- Throws:
CRMFException
-