Package org.bouncycastle.asn1.crmf
Class POPOSigningKeyInput
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.crmf.POPOSigningKeyInput
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class POPOSigningKeyInput
extends org.bouncycastle.asn1.ASN1Object
-
Constructor Summary
ConstructorDescriptionPOPOSigningKeyInput
(PKMACValue pkmac, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo spki) Creates a new POPOSigningKeyInput using password-based MAC.POPOSigningKeyInput
(org.bouncycastle.asn1.x509.GeneralName sender, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo spki) Creates a new POPOSigningKeyInput with sender name as authInfo. -
Method Summary
Modifier and TypeMethodDescriptionstatic POPOSigningKeyInput
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
Returns the publicKeyMAC field, or null if authInfo is senderorg.bouncycastle.asn1.x509.GeneralName
Returns the sender field, or null if authInfo is publicKeyMACorg.bouncycastle.asn1.ASN1Primitive
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 CertTemplateMethods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
POPOSigningKeyInput
public POPOSigningKeyInput(org.bouncycastle.asn1.x509.GeneralName sender, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo spki) Creates a new POPOSigningKeyInput with sender name as authInfo. -
POPOSigningKeyInput
Creates a new POPOSigningKeyInput using password-based MAC.
-
-
Method Details
-
getInstance
-
getSender
public org.bouncycastle.asn1.x509.GeneralName getSender()Returns the sender field, or null if authInfo is publicKeyMAC -
getPublicKeyMAC
Returns the publicKeyMAC field, or null if authInfo is sender -
getPublicKey
public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getPublicKey() -
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive 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
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
- Returns:
- a basic ASN.1 object representation.
-