public class

POPOSigningKey

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.crmf.POPOSigningKey

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
POPOSigningKey(POPOSigningKeyInput poposkIn, AlgorithmIdentifier aid, DERBitString signature)
Creates a new Proof of Possession object for a signing key.
Public Methods
AlgorithmIdentifier getAlgorithmIdentifier()
static POPOSigningKey getInstance(ASN1TaggedObject obj, boolean explicit)
static POPOSigningKey getInstance(Object o)
POPOSigningKeyInput getPoposkInput()
DERBitString getSignature()
DERObject toASN1Object()
 POPOSigningKey ::= SEQUENCE {
                      poposkInput           [0] POPOSigningKeyInput OPTIONAL,
                      algorithmIdentifier   AlgorithmIdentifier,
                      signature             BIT STRING }
  -- The signature (using "algorithmIdentifier") is on the
  -- DER-encoded value of poposkInput.
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public POPOSigningKey (POPOSigningKeyInput poposkIn, AlgorithmIdentifier aid, DERBitString signature)

Creates a new Proof of Possession object for a signing key.

Parameters
poposkIn the POPOSigningKeyInput structure, or null if the CertTemplate includes both subject and publicKey values.
aid the AlgorithmIdentifier used to sign the proof of possession.
signature a signature over the DER-encoded value of poposkIn, or the DER-encoded value of certReq if poposkIn is null.

Public Methods

public AlgorithmIdentifier getAlgorithmIdentifier ()

public static POPOSigningKey getInstance (ASN1TaggedObject obj, boolean explicit)

public static POPOSigningKey getInstance (Object o)

public POPOSigningKeyInput getPoposkInput ()

public DERBitString getSignature ()

public DERObject toASN1Object ()

 POPOSigningKey ::= SEQUENCE {
                      poposkInput           [0] POPOSigningKeyInput OPTIONAL,
                      algorithmIdentifier   AlgorithmIdentifier,
                      signature             BIT STRING }
  -- The signature (using "algorithmIdentifier") is on the
  -- DER-encoded value of poposkInput.  NOTE: If the CertReqMsg
  -- certReq CertTemplate contains the subject and publicKey values,
  -- then poposkInput MUST be omitted and the signature MUST be
  -- computed on the DER-encoded value of CertReqMsg certReq.  If
  -- the CertReqMsg certReq CertTemplate does not contain the public
  -- key and subject values, then poposkInput MUST be present and
  -- MUST be signed.  This strategy ensures that the public key is
  -- not present in both the poposkInput and CertReqMsg certReq
  -- CertTemplate fields.
 

Returns
  • a basic ASN.1 object representation.