Package org.bouncycastle.cert.crmf
Class PKIArchiveControl
- java.lang.Object
-
- org.bouncycastle.cert.crmf.PKIArchiveControl
-
-
Field Summary
Fields Modifier and Type Field Description static int
archiveRemGenPrivKey
static int
encryptedPrivKey
static int
keyGenParameters
-
Constructor Summary
Constructors Constructor Description PKIArchiveControl(org.bouncycastle.asn1.crmf.PKIArchiveOptions pkiArchiveOptions)
Basic constructor - build from an PKIArchiveOptions structure.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getArchiveType()
Return the archive control type, one of: encryptedPrivKey,keyGenParameters,or archiveRemGenPrivKey.CMSEnvelopedData
getEnvelopedData()
Return the enveloped data structure contained in this control.org.bouncycastle.asn1.ASN1ObjectIdentifier
getType()
Return the type of this control.org.bouncycastle.asn1.ASN1Encodable
getValue()
Return the underlying ASN.1 object.boolean
isEnvelopedData()
Return whether this control contains enveloped data.
-
-
-
Field Detail
-
encryptedPrivKey
public static final int encryptedPrivKey
- See Also:
- Constant Field Values
-
keyGenParameters
public static final int keyGenParameters
- See Also:
- Constant Field Values
-
archiveRemGenPrivKey
public static final int archiveRemGenPrivKey
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
Return the type of this control.
-
getValue
public org.bouncycastle.asn1.ASN1Encodable getValue()
Return the underlying ASN.1 object.
-
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
public CMSEnvelopedData getEnvelopedData() throws CRMFException
Return the enveloped data structure contained in this control.- Returns:
- a CMSEnvelopedData object.
- Throws:
CRMFException
-
-