public class POPOPrivKey extends java.lang.Object implements ASN1Type
POPOPrivKey ::= CHOICE {
thisMessage [0] IMPLICIT BIT STRING,
-- posession is proven in this message (which contains the private
-- key itself (encrypted for the CA))
subsequentMessage [1] IMPLICIT SubsequentMessage,
-- possession will be proven in a subsequent message
dhMAC [2] IMPLICIT BIT STRING }
-- for keyAgreement (only), possession is proven in this message
-- (which contains a MAC (over the DER-encoded value of the
-- certReq parameter in CertReqMsg, which MUST include both subject
-- and publicKey) based on a key derived from the end entity's
-- private DH key and the CA's public DH key);
-- the dhMAC value MUST be calculated as per the directions given
-- in RFC 2511 Appendix A.
}
SubsequentMessage ::= INTEGER {
encrCert (0),
-- requests that resulting certificate be encrypted for the
-- end entity (following which, POP will be proven in a
-- confirmation message)
challengeResp (1) }
-- requests that CA engage in challenge-response exchange with
-- end entity in order to prove private key possession
}
| Modifier and Type | Field and Description |
|---|---|
static byte |
dhMAC
POPOPrivKey type 'dhMAC'.
|
static byte |
subsequentMessage
POPOPrivKey type 'subsequentMessage'.
|
static java.lang.Integer |
subsequentMessage_challengeResp
SubsequentMessage value - challengeResp.
|
static java.lang.Integer |
subsequentMessage_encrCert
SubsequentMessage value - encrCert.
|
static byte |
thisMessage
POPOPrivKey type 'thisMessage'.
|
static java.lang.String[] |
typeName
Names of each POPOPrivKey type.
|
| Constructor and Description |
|---|
POPOPrivKey(ASN1Object obj)
Creates a
POPOPrivKey object from an ASN1Object. |
POPOPrivKey(int type,
java.lang.Object value)
Creates a new
POPOPrivKey object with the specified type and
value. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a POPOPrivKey structure from an
ASN1Object. |
int |
getType()
Returns the type of POPOPrivKey.
|
java.lang.Object |
getValue()
Returns the value of POPOPrivKey.
|
ASN1Object |
toASN1Object()
Encodes this
POPOPrivKey as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
POPOPrivKey object. |
public static final byte thisMessage
public static final byte subsequentMessage
public static final byte dhMAC
public static final java.lang.Integer subsequentMessage_encrCert
public static final java.lang.Integer subsequentMessage_challengeResp
public static final java.lang.String[] typeName
public POPOPrivKey(int type,
java.lang.Object value)
POPOPrivKey object with the specified type and
value. Only the following combinations of type and value are supported:
byte []Integerbyte []type - the type of POPOPrivKeyvalue - the value of POPOPrivKeypublic POPOPrivKey(ASN1Object obj) throws CodingException
POPOPrivKey object from an ASN1Object.obj - the ASN.1 representation of a POPOPrivKey structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic int getType()
public java.lang.Object getValue()
byte []Integerbyte []
The value is returned as an Object, which can then cast to
the appropriate object-type based on the type of POPOPrivKey.
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a POPOPrivKey structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
POPOPrivKey as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
POPOPrivKey object.toString in class java.lang.Object