public class PKMACValue
extends org.bouncycastle.asn1.ASN1Object
Constructor and Description |
---|
PKMACValue(org.bouncycastle.asn1.x509.AlgorithmIdentifier aid,
org.bouncycastle.asn1.DERBitString value)
Creates a new PKMACValue.
|
PKMACValue(PBMParameter params,
org.bouncycastle.asn1.DERBitString value)
Creates a new PKMACValue.
|
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgId() |
static PKMACValue |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj,
boolean isExplicit) |
static PKMACValue |
getInstance(java.lang.Object o) |
org.bouncycastle.asn1.ASN1BitString |
getValue() |
org.bouncycastle.asn1.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 }
|
public PKMACValue(PBMParameter params, org.bouncycastle.asn1.DERBitString value)
params
- parameters for password-based MACvalue
- MAC of the DER-encoded SubjectPublicKeyInfopublic PKMACValue(org.bouncycastle.asn1.x509.AlgorithmIdentifier aid, org.bouncycastle.asn1.DERBitString value)
aid
- CMPObjectIdentifiers.passwordBasedMAC, with PBMParametervalue
- MAC of the DER-encoded SubjectPublicKeyInfopublic static PKMACValue getInstance(java.lang.Object o)
public static PKMACValue getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean isExplicit)
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgId()
public org.bouncycastle.asn1.ASN1BitString getValue()
public org.bouncycastle.asn1.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 org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object