public class

POPOSigningKeyInput

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

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
POPOSigningKeyInput(GeneralName sender, SubjectPublicKeyInfo spki)
Creates a new POPOSigningKeyInput with sender name as authInfo.
POPOSigningKeyInput(PKMACValue pkmac, SubjectPublicKeyInfo spki)
Creates a new POPOSigningKeyInput using password-based MAC.
Public Methods
static POPOSigningKeyInput getInstance(Object o)
SubjectPublicKeyInfo getPublicKey()
PKMACValue getPublicKeyMAC()
Returns the publicKeyMAC field, or null if authInfo is sender
GeneralName getSender()
Returns the sender field, or null if authInfo is publicKeyMAC
DERObject toASN1Object()
 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
 
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public POPOSigningKeyInput (GeneralName sender, SubjectPublicKeyInfo spki)

Creates a new POPOSigningKeyInput with sender name as authInfo.

public POPOSigningKeyInput (PKMACValue pkmac, SubjectPublicKeyInfo spki)

Creates a new POPOSigningKeyInput using password-based MAC.

Public Methods

public static POPOSigningKeyInput getInstance (Object o)

public SubjectPublicKeyInfo getPublicKey ()

public PKMACValue getPublicKeyMAC ()

Returns the publicKeyMAC field, or null if authInfo is sender

public GeneralName getSender ()

Returns the sender field, or null if authInfo is publicKeyMAC

public DERObject toASN1Object ()

 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
 

Returns
  • a basic ASN.1 object representation.