Class ProofOfPossession

    • 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()
      • toASN1Primitive

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