public class PKIArchiveOptions extends AttributeTypeAndValue implements ASN1Type
id-regCtrl-pkiArchiveOptions OBJECT IDENTIFIER ::= { id-regCtrl 4 }
--with syntax:
PKIArchiveOptions ::= CHOICE {
encryptedPrivKey [0] EncryptedKey,
-- the actual value of the private key
keyGenParameters [1] IMPLICIT KeyGenParameters,
-- parameters which allow the private key to be re-generated
archiveRemGenPrivKey [2] IMPLICIT BOOLEAN
-- set to TRUE if sender wishes receiver to archive the private
-- key of a key pair which the receiver generates in response to
-- this request; set to FALSE if no archival is desired.
}
EncryptedKey ::= CHOICE {
encryptedValue EncryptedValue,
envelopedData [0] IMPLICIT EnvelopedData
-- The encrypted private key MUST be placed in the envelopedData
-- encryptedContentInfo encryptedContent OCTET STRING.
}
KeyGenParameters ::= OCTET STRING
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY DEFINED BY type
}
The pkiArchiveOptions regCtrl enables subscribers to supply information needed to establish an archive of the private key corresponding to the public key of the certification request.
| Modifier and Type | Field and Description |
|---|---|
static byte |
archiveRemGenPrivKey
PKIArchiveOptions type 'archiveRemGenPrivKey'.
|
static byte |
encryptedPrivKey
PKIArchiveOptions type 'encryptedPrivKey'.
|
static byte |
keyGenParameters
PKIArchiveOptions type 'keyGenParameters'.
|
static ObjectID |
oid
The object identifier for a PKIArchiveOptions regCtrl.
|
m_type, m_value| Constructor and Description |
|---|
PKIArchiveOptions(ASN1Object obj)
Creates a new
PKIArchiveOptions regCtrl object from an
ASN1Object. |
PKIArchiveOptions(int choiceType,
java.lang.Object choiceValue)
Creates a new
PKIArchiveOptions object with the specified
choice-type and choice-value. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an PKIArchiveOptions regCtrl structure from an
ASN1Object. |
int |
getChoiceType()
Returns the choice type that this object represents.
|
java.lang.Object |
getChoiceValue()
Returns the choice value that this object represents.
|
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
PKIArchiveOptions regCtrl object. |
getType, getValue, toASN1Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoASN1Objectpublic static final ObjectID oid
public static final byte encryptedPrivKey
public static final byte keyGenParameters
public static final byte archiveRemGenPrivKey
public PKIArchiveOptions(int choiceType,
java.lang.Object choiceValue)
PKIArchiveOptions object with the specified
choice-type and choice-value. Currently, only the following combinations
of type and value are supported:
EncryptedValue
byte []BooleanchoiceType - the choice-type of PKIArchiveOptionschoiceValue - the choice-value of PKIArchiveOptionspublic PKIArchiveOptions(ASN1Object obj) throws CodingException
PKIArchiveOptions regCtrl object from an
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1
PKIArchiveOptions structure.obj - the ASN.1 representation of a PKIArchiveOptions regCtrl structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic int getChoiceType()
public java.lang.Object getChoiceValue()
public void decode(ASN1Object obj) throws CodingException
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1
PKIArchiveOptions structure.decode in interface ASN1Typedecode in class AttributeTypeAndValueobj - an ASN.1 representation of a PKIArchiveOptions regCtrl structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.lang.String toString()
PKIArchiveOptions regCtrl object.toString in class AttributeTypeAndValue