ASN1Encodable
, Encodable
public class PKMACValue extends ASN1Object
Constructor | Description |
---|---|
PKMACValue(PBMParameter params,
DERBitString value) |
Creates a new PKMACValue.
|
PKMACValue(AlgorithmIdentifier aid,
DERBitString value) |
Creates a new PKMACValue.
|
Modifier and Type | Method | Description |
---|---|---|
AlgorithmIdentifier |
getAlgId() |
|
static PKMACValue |
getInstance(java.lang.Object o) |
|
static PKMACValue |
getInstance(ASN1TaggedObject obj,
boolean isExplicit) |
|
DERBitString |
getValue() |
|
ASN1Primitive |
toASN1Primitive() |
PKMACValue ::= SEQUENCE {
algId AlgorithmIdentifier,
-- algorithm value shall be PasswordBasedMac 1.2.840.113533.7.66.13
-- parameter value is PBMParameter
value BIT STRING }
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public PKMACValue(PBMParameter params, DERBitString value)
params
- parameters for password-based MACvalue
- MAC of the DER-encoded SubjectPublicKeyInfopublic PKMACValue(AlgorithmIdentifier aid, DERBitString value)
aid
- CMPObjectIdentifiers.passwordBasedMAC, with PBMParametervalue
- MAC of the DER-encoded SubjectPublicKeyInfopublic static PKMACValue getInstance(java.lang.Object o)
public static PKMACValue getInstance(ASN1TaggedObject obj, boolean isExplicit)
public AlgorithmIdentifier getAlgId()
public DERBitString getValue()
public ASN1Primitive toASN1Primitive()
PKMACValue ::= SEQUENCE { algId AlgorithmIdentifier, -- algorithm value shall be PasswordBasedMac 1.2.840.113533.7.66.13 -- parameter value is PBMParameter value BIT STRING }
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object