public class ProofOfPossession extends ASN1Object implements ASN1Choice
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_KEY_AGREEMENT |
static int |
TYPE_KEY_ENCIPHERMENT |
static int |
TYPE_RA_VERIFIED |
static int |
TYPE_SIGNING_KEY |
Constructor and Description |
---|
ProofOfPossession()
Creates a ProofOfPossession with type raVerified.
|
ProofOfPossession(int type,
POPOPrivKey privkey)
Creates a ProofOfPossession for key encipherment or agreement.
|
ProofOfPossession(POPOSigningKey poposk)
Creates a ProofOfPossession for a signing key.
|
Modifier and Type | Method and Description |
---|---|
static ProofOfPossession |
getInstance(java.lang.Object o) |
ASN1Encodable |
getObject() |
int |
getType() |
ASN1Primitive |
toASN1Primitive()
ProofOfPossession ::= CHOICE {
raVerified [0] NULL,
-- used if the RA has already verified that the requester is in
-- possession of the private key
signature [1] POPOSigningKey,
keyEncipherment [2] POPOPrivKey,
keyAgreement [3] POPOPrivKey }
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public static final int TYPE_RA_VERIFIED
public static final int TYPE_SIGNING_KEY
public static final int TYPE_KEY_ENCIPHERMENT
public static final int TYPE_KEY_AGREEMENT
public ProofOfPossession()
public ProofOfPossession(POPOSigningKey poposk)
public ProofOfPossession(int type, POPOPrivKey privkey)
type
- one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENTpublic static ProofOfPossession getInstance(java.lang.Object o)
public int getType()
public ASN1Encodable getObject()
public ASN1Primitive toASN1Primitive()
ProofOfPossession ::= CHOICE { raVerified [0] NULL, -- used if the RA has already verified that the requester is in -- possession of the private key signature [1] POPOSigningKey, keyEncipherment [2] POPOPrivKey, keyAgreement [3] POPOPrivKey }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object