Package org.bouncycastle.asn1.crmf
Class PKMACValue
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.crmf.PKMACValue
- All Implemented Interfaces:
ASN1Encodable,Encodable
Password-based MAC value for use with POPOSigningKeyInput.
-
Constructor Summary
ConstructorsConstructorDescriptionPKMACValue(PBMParameter params, DERBitString value) Creates a new PKMACValue.PKMACValue(AlgorithmIdentifier aid, DERBitString value) Creates a new PKMACValue. -
Method Summary
Modifier and TypeMethodDescriptiongetAlgId()static PKMACValuestatic PKMACValuegetInstance(ASN1TaggedObject obj, boolean isExplicit) getValue()PKMACValue ::= SEQUENCE { algId AlgorithmIdentifier, -- algorithm value shall be PasswordBasedMac 1.2.840.113533.7.66.13 -- parameter value is PBMParameter value BIT STRING }Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
PKMACValue
Creates a new PKMACValue.- Parameters:
params- parameters for password-based MACvalue- MAC of the DER-encoded SubjectPublicKeyInfo
-
PKMACValue
Creates a new PKMACValue.- Parameters:
aid- CMPObjectIdentifiers.passwordBasedMAC, with PBMParametervalue- MAC of the DER-encoded SubjectPublicKeyInfo
-
-
Method Details
-
getInstance
-
getInstance
-
getAlgId
-
getValue
-
toASN1Primitive
PKMACValue ::= SEQUENCE { algId AlgorithmIdentifier, -- algorithm value shall be PasswordBasedMac 1.2.840.113533.7.66.13 -- parameter value is PBMParameter value BIT STRING }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a basic ASN.1 object representation.
-