Top Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class POPOSigningKeyInput

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.x509.GeneralName, .SubjectPublicKeyInfo

Field Summary

Modifier and TypeField and Description
private SubjectPublicKeyInfo
private PKMACValue
private GeneralName

Constructor Summary

AccessConstructor and Description
private
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.

Method Summary

Modifier and TypeMethod and Description
public static POPOSigningKeyInput
public SubjectPublicKeyInfo
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 ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

publicKeyback to summary
private SubjectPublicKeyInfo publicKey
publicKeyMACback to summary
private PKMACValue publicKeyMAC
senderback to summary
private GeneralName sender

Constructor Detail

POPOSigningKeyInputback to summary
private POPOSigningKeyInput(ASN1Sequence seq)
POPOSigningKeyInputback to summary
public POPOSigningKeyInput(GeneralName sender, SubjectPublicKeyInfo spki)

Creates a new POPOSigningKeyInput with sender name as authInfo.

POPOSigningKeyInputback to summary
public POPOSigningKeyInput(PKMACValue pkmac, SubjectPublicKeyInfo spki)

Creates a new POPOSigningKeyInput using password-based MAC.

Method Detail

getInstanceback to summary
public static POPOSigningKeyInput getInstance(Object o)
getPublicKeyback to summary
public SubjectPublicKeyInfo getPublicKey()
getPublicKeyMACback to summary
public PKMACValue getPublicKeyMAC()

Returns the publicKeyMAC field, or null if authInfo is sender

getSenderback to summary
public GeneralName getSender()

Returns the sender field, or null if authInfo is publicKeyMAC

toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

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

a basic ASN.1 object representation.