public class POPOSigningKey extends java.lang.Object implements ASN1Type
POPOSigningKey ::= SEQUENCE {
poposkInput [0] IMPLICIT 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 both the
-- public key and subject values (i.e., if it contains only one
-- of these, or neither), then poposkInput MUST be present and
-- MUST be signed.
}
| Constructor and Description |
|---|
POPOSigningKey(AlgorithmID algorithmIdentifier,
byte[] signature)
Creates a new
POPOSigningKey object with the specified
components. |
POPOSigningKey(ASN1Object obj)
Creates a
POPOSigningKey object from an
ASN1Object. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a POPOSigningKey structure from an
ASN1Object. |
AlgorithmID |
getAlgorithmIdentifier()
Returns the algorithm ID that was used during signing.
|
POPOSigningKeyInput |
getPoposkInput()
Returns the data that was signed (used when requesting first signing key)
if it exists; otherwise
null is returned. |
byte[] |
getSignature()
Returns the signature.
|
void |
setPOPOSKInput(POPOSigningKeyInput poposkInput)
Sets the poposkInput.
|
ASN1Object |
toASN1Object()
Encodes this
POPOSigningKey as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
POPOSigningKey object. |
public POPOSigningKey(AlgorithmID algorithmIdentifier, byte[] signature)
POPOSigningKey object with the specified
components.algorithmIdentifier - the algorithm id that was used for signingsignature - the signaturepublic POPOSigningKey(ASN1Object obj) throws CodingException
POPOSigningKey object from an
ASN1Object.obj - the ASN.1 representation of a POPOSigningKey structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic void setPOPOSKInput(POPOSigningKeyInput poposkInput)
poposkInput - the poposkInput componentpublic POPOSigningKeyInput getPoposkInput()
null is returned.public AlgorithmID getAlgorithmIdentifier()
public byte[] getSignature()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a POPOSigningKey structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
POPOSigningKey as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
POPOSigningKey object.toString in class java.lang.Object