public class POPOSigningKeyInput extends java.lang.Object implements ASN1Type
POPOSigningKeyInput ::= SEQUENCE {
authInfo CHOICE {
sender [0] GeneralName,
-- used only if an authenticated identity has been
-- established for the sender (e.g., a DN from a
-- previously-issued and currently-valid certificate
publicKeyMAC PKMACValue },
-- used if no authenticated GeneralName currently exists for
-- the sender; publicKeyMAC contains a password-based MAC
-- on the DER-encoded value of publicKey
publicKey SubjectPublicKeyInfo
-- from CertTemplate
}
| Constructor and Description |
|---|
POPOSigningKeyInput(ASN1Object obj)
Creates a
POPOSigningKeyInput object from an
ASN1Object. |
POPOSigningKeyInput(GeneralName sender,
java.security.PublicKey publicKey)
Creates a new
POPOSigningKey object with the specified
components. |
POPOSigningKeyInput(PKMACValue publicKeyMAC,
java.security.PublicKey publicKey)
Creates a new
POPOSigningKey object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes a POPOSigningKeyInput structure from an
ASN1Object. |
java.security.PublicKey |
getPublicKey()
Returns the public key.
|
PKMACValue |
getPublicKeyMAC()
Returns the password-based MAC of the public key if the object was created
for a user that does not already exists at the CA; otherwise
null is returned. |
GeneralName |
getSender()
Returns the identity of the sender if the object was created for a user
that already exists at the CA; otherwise
null is returned. |
ASN1Object |
toASN1Object()
Encodes this
POPOSigningKeyInput as an ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
POPOSigningKeyInput object. |
public POPOSigningKeyInput(GeneralName sender, java.security.PublicKey publicKey)
POPOSigningKey object with the specified
components. This constructor is for users that already exist at the CA.sender - the identity of the sender for a user that already exists at the CApublicKey - the public key from the certificate templatepublic POPOSigningKeyInput(PKMACValue publicKeyMAC, java.security.PublicKey publicKey)
POPOSigningKey object with the specified
components. This constructor is for users that do not already exists at
the CA.publicKeyMAC - a password-based MAC of the public key for a user that does not
already exist at the CApublicKey - the public key from the certificate templatepublic POPOSigningKeyInput(ASN1Object obj) throws CodingException
POPOSigningKeyInput object from an
ASN1Object.obj - the ASN.1 representation of a POPOSigningKeyInput structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic GeneralName getSender()
null is returned.public PKMACValue getPublicKeyMAC()
null is returned.public java.security.PublicKey getPublicKey()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.decode in interface ASN1Typeobj - an ASN.1 representation of a POPOSigningKeyInput structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
POPOSigningKeyInput as an ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
POPOSigningKeyInput object.toString in class java.lang.Object