public class

ProofOfPossession

extends ASN1Encodable
implements ASN1Choice
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.crmf.ProofOfPossession

Summary

Constants
int TYPE_KEY_AGREEMENT
int TYPE_KEY_ENCIPHERMENT
int TYPE_RA_VERIFIED
int TYPE_SIGNING_KEY
[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
ProofOfPossession()
Creates a ProofOfPossession with type raVerified.
ProofOfPossession(POPOSigningKey poposk)
Creates a ProofOfPossession for a signing key.
ProofOfPossession(int type, POPOPrivKey privkey)
Creates a ProofOfPossession for key encipherment or agreement.
Public Methods
static ProofOfPossession getInstance(Object o)
ASN1Encodable getObject()
int getType()
DERObject toASN1Object()
 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 }
 
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Constants

public static final int TYPE_KEY_AGREEMENT

Constant Value: 3 (0x00000003)

public static final int TYPE_KEY_ENCIPHERMENT

Constant Value: 2 (0x00000002)

public static final int TYPE_RA_VERIFIED

Constant Value: 0 (0x00000000)

public static final int TYPE_SIGNING_KEY

Constant Value: 1 (0x00000001)

Public Constructors

public ProofOfPossession ()

Creates a ProofOfPossession with type raVerified.

public ProofOfPossession (POPOSigningKey poposk)

Creates a ProofOfPossession for a signing key.

public ProofOfPossession (int type, POPOPrivKey privkey)

Creates a ProofOfPossession for key encipherment or agreement.

Parameters
type one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENT

Public Methods

public static ProofOfPossession getInstance (Object o)

public ASN1Encodable getObject ()

public int getType ()

public DERObject toASN1Object ()

 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 }
 

Returns
  • a basic ASN.1 object representation.