public class POPOSigningKeyInput extends ASN1Object
Modifier and Type | Field and Description |
---|---|
private SubjectPublicKeyInfo |
publicKey |
private PKMACValue |
publicKeyMAC |
private GeneralName |
sender |
Modifier | Constructor and Description |
---|---|
private |
POPOSigningKeyInput(ASN1Sequence seq) |
|
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.
|
Modifier and Type | Method and Description |
---|---|
static POPOSigningKeyInput |
getInstance(java.lang.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
|
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
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
private GeneralName sender
private PKMACValue publicKeyMAC
private SubjectPublicKeyInfo publicKey
private POPOSigningKeyInput(ASN1Sequence seq)
public POPOSigningKeyInput(GeneralName sender, SubjectPublicKeyInfo spki)
public POPOSigningKeyInput(PKMACValue pkmac, SubjectPublicKeyInfo spki)
public static POPOSigningKeyInput getInstance(java.lang.Object o)
public GeneralName getSender()
public PKMACValue getPublicKeyMAC()
public SubjectPublicKeyInfo getPublicKey()
public 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
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object