public class ProofOfPossession extends java.lang.Object implements ASN1Type
ProofOfPossession ::= CHOICE {
raVerified [0] IMPLICIT NULL,
-- used if the RA has already verified that the requester is in
-- possession of the private key
signature [1] IMPLICIT POPOSigningKey,
keyEncipherment [2] POPOPrivKey,
keyAgreement [3] POPOPrivKey
}
| Modifier and Type | Field and Description |
|---|---|
static byte |
keyAgreement
ProofOfPossession type 'keyAgreement'.
|
static byte |
keyEncipherment
ProofOfPossession type 'keyEncipherment'.
|
static byte |
raVerified
ProofOfPossession type 'raVerified'.
|
static byte |
signature
ProofOfPossession type 'signature'.
|
static java.lang.String[] |
typeName
Names of each ProofOfPossession type.
|
| Constructor and Description |
|---|
ProofOfPossession(ASN1Object obj)
Creates a
ProofOfPossession object from an
ASN1Object. |
ProofOfPossession(int type,
java.lang.Object value)
Creates a new
ProofOfPossession object with the specified
type and value. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a ProofOfPossession structure from an
ASN1Object. |
int |
getType()
Returns the type of ProofOfPossession.
|
java.lang.Object |
getValue()
Returns the value of ProofOfPossession.
|
ASN1Object |
toASN1Object()
Encodes this
ProofOfPossession as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
ProofOfPossession object. |
public static final byte raVerified
public static final byte signature
public static final byte keyEncipherment
public static final byte keyAgreement
public static final java.lang.String[] typeName
public ProofOfPossession(int type,
java.lang.Object value)
ProofOfPossession object with the specified
type and value. Only the following combinations of type and value are
supported:
nullPOPOSigningKeyPOPOPrivKeyPOPOPrivKeytype - the type of ProofOfPossessionvalue - the value of ProofOfPossessionpublic ProofOfPossession(ASN1Object obj) throws CodingException
ProofOfPossession object from an
ASN1Object.obj - the ASN.1 representation of a ProofOfPossession structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic int getType()
public java.lang.Object getValue()
nullPOPOSigningKeyPOPOPrivKeyPOPOPrivKey
The value is returned as an Object, which can then cast to
the appropriate object-type based on the type of ProofOfPossession.
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a ProofOfPossession structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
ProofOfPossession as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
ProofOfPossession object.toString in class java.lang.Object