Top Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class POPOSigningKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private POPOSigningKeyInput
private DERBitString

Constructor Summary

AccessConstructor and Description
private
public
POPOSigningKey(POPOSigningKeyInput
the POPOSigningKeyInput structure, or null if the CertTemplate includes both subject and publicKey values.
poposkIn
,
AlgorithmIdentifier
the AlgorithmIdentifier used to sign the proof of possession.
aid
,
DERBitString
a signature over the DER-encoded value of poposkIn, or the DER-encoded value of certReq if poposkIn is null.
signature
)

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

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public static POPOSigningKey
public static POPOSigningKey
getInstance(ASN1TaggedObject obj, boolean explicit)

public POPOSigningKeyInput
public DERBitString
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

POPOSigningKey ::= SEQUENCE {
                     poposkInput           [0] POPOSigningKeyInput OPTIONAL,
                     algorithmIdentifier   AlgorithmIdentifier,
                     signature             BIT STRING }
 -- The signature (using "algorithmIdentifier") is on the
 -- DER-encoded value of poposkInput.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

algorithmIdentifierback to summary
private AlgorithmIdentifier algorithmIdentifier
poposkInputback to summary
private POPOSigningKeyInput poposkInput
signatureback to summary
private DERBitString signature

Constructor Detail

POPOSigningKeyback to summary
private POPOSigningKey(ASN1Sequence seq)
POPOSigningKeyback to summary
public POPOSigningKey(POPOSigningKeyInput poposkIn, AlgorithmIdentifier aid, DERBitString signature)

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

Parameters
poposkIn:POPOSigningKeyInput

the POPOSigningKeyInput structure, or null if the CertTemplate includes both subject and publicKey values.

aid:AlgorithmIdentifier

the AlgorithmIdentifier used to sign the proof of possession.

signature:DERBitString

a signature over the DER-encoded value of poposkIn, or the DER-encoded value of certReq if poposkIn is null.

Method Detail

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()
getInstanceback to summary
public static POPOSigningKey getInstance(Object o)
getInstanceback to summary
public static POPOSigningKey getInstance(ASN1TaggedObject obj, boolean explicit)
getPoposkInputback to summary
public POPOSigningKeyInput getPoposkInput()
getSignatureback to summary
public DERBitString getSignature()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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:ASN1Primitive

a basic ASN.1 object representation.