Package org.bouncycastle.asn1.crmf
Class ProofOfPossession
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.crmf.ProofOfPossession
- All Implemented Interfaces:
ASN1Choice
,ASN1Encodable
,Encodable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionCreates 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. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProofOfPossession
int
getType()
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 }Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
TYPE_RA_VERIFIED
public static final int TYPE_RA_VERIFIED- See Also:
-
TYPE_SIGNING_KEY
public static final int TYPE_SIGNING_KEY- See Also:
-
TYPE_KEY_ENCIPHERMENT
public static final int TYPE_KEY_ENCIPHERMENT- See Also:
-
TYPE_KEY_AGREEMENT
public static final int TYPE_KEY_AGREEMENT- See Also:
-
-
Constructor Details
-
ProofOfPossession
public ProofOfPossession()Creates a ProofOfPossession with type raVerified. -
ProofOfPossession
Creates a ProofOfPossession for a signing key. -
ProofOfPossession
Creates a ProofOfPossession for key encipherment or agreement.- Parameters:
type
- one of TYPE_KEY_ENCIPHERMENT or TYPE_KEY_AGREEMENT
-
-
Method Details
-
getInstance
-
getType
public int getType() -
getObject
-
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 }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a basic ASN.1 object representation.
-