public class PKMACValue extends ASN1Object
Constructor and Description |
---|
PKMACValue(AlgorithmIdentifier aid,
DERBitString value)
Creates a new PKMACValue.
|
PKMACValue(PBMParameter params,
DERBitString value)
Creates a new PKMACValue.
|
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getAlgId() |
static PKMACValue |
getInstance(ASN1TaggedObject obj,
boolean isExplicit) |
static PKMACValue |
getInstance(java.lang.Object o) |
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
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