Class ProofOfPossession

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class ProofOfPossession
    extends org.bouncycastle.asn1.ASN1Object
    implements org.bouncycastle.asn1.ASN1Choice
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static ProofOfPossession getInstance​(java.lang.Object o)  
      org.bouncycastle.asn1.ASN1Encodable getObject()  
      int getType()  
      org.bouncycastle.asn1.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 }
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProofOfPossession

        public ProofOfPossession()
        Creates a ProofOfPossession with type raVerified.
      • ProofOfPossession

        public ProofOfPossession​(POPOSigningKey poposk)
        Creates a ProofOfPossession for a signing key.
      • ProofOfPossession

        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
    • Method Detail

      • getType

        public int getType()
      • getObject

        public org.bouncycastle.asn1.ASN1Encodable getObject()
      • toASN1Primitive

        public org.bouncycastle.asn1.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 }
         
        Specified by:
        toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
        Returns:
        a basic ASN.1 object representation.