Top Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class ProofOfPossession

extends ASN1Object
implements ASN1Choice
Class Inheritance
All Implemented Interfaces
org.bouncycastle.asn1.ASN1Choice
Imports
org.bouncycastle.asn1.ASN1Choice, .ASN1Encodable, .ASN1Object, .ASN1Primitive, .ASN1TaggedObject, .DERNull, .DERTaggedObject

Field Summary

Modifier and TypeField and Description
private ASN1Encodable
private int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
private
public
ProofOfPossession()

Creates a ProofOfPossession with type raVerified.

public
ProofOfPossession(POPOSigningKey poposk)

Creates a ProofOfPossession for a signing key.

public
ProofOfPossession(int
one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENT
type
,
POPOPrivKey privkey)

Creates a ProofOfPossession for key encipherment or agreement.

Method Summary

Modifier and TypeMethod and Description
public static ProofOfPossession
public ASN1Encodable
public int
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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 }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

objback to summary
private ASN1Encodable obj
tagNoback to summary
private int tagNo
TYPE_KEY_AGREEMENTback to summary
public static final int TYPE_KEY_AGREEMENT
TYPE_KEY_ENCIPHERMENTback to summary
public static final int TYPE_KEY_ENCIPHERMENT
TYPE_RA_VERIFIEDback to summary
public static final int TYPE_RA_VERIFIED
TYPE_SIGNING_KEYback to summary
public static final int TYPE_SIGNING_KEY

Constructor Detail

ProofOfPossessionback to summary
private ProofOfPossession(ASN1TaggedObject tagged)
ProofOfPossessionback to summary
public ProofOfPossession()

Creates a ProofOfPossession with type raVerified.

ProofOfPossessionback to summary
public ProofOfPossession(POPOSigningKey poposk)

Creates a ProofOfPossession for a signing key.

ProofOfPossessionback to summary
public ProofOfPossession(int type, POPOPrivKey privkey)

Creates a ProofOfPossession for key encipherment or agreement.

Parameters
type:int

one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENT

Method Detail

getInstanceback to summary
public static ProofOfPossession getInstance(Object o)
getObjectback to summary
public ASN1Encodable getObject()
getTypeback to summary
public int getType()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.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 }
Returns:ASN1Primitive

a basic ASN.1 object representation.