Bouncy Castle Cryptography Library 1.46

org.bouncycastle.asn1.crmf
Class PKMACValue

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.crmf.PKMACValue
All Implemented Interfaces:
DEREncodable

public class PKMACValue
extends ASN1Encodable

Password-based MAC value for use with POPOSigningKeyInput.


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
PKMACValue(AlgorithmIdentifier aid, DERBitString value)
          Creates a new PKMACValue.
PKMACValue(PBMParameter params, DERBitString value)
          Creates a new PKMACValue.
 
Method Summary
 AlgorithmIdentifier getAlgId()
           
static PKMACValue getInstance(ASN1TaggedObject obj, boolean isExplicit)
           
static PKMACValue getInstance(java.lang.Object o)
           
 DERBitString getValue()
           
 DERObject toASN1Object()
           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.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKMACValue

public PKMACValue(PBMParameter params,
                  DERBitString value)
Creates a new PKMACValue.

Parameters:
params - parameters for password-based MAC
value - MAC of the DER-encoded SubjectPublicKeyInfo

PKMACValue

public PKMACValue(AlgorithmIdentifier aid,
                  DERBitString value)
Creates a new PKMACValue.

Parameters:
aid - CMPObjectIdentifiers.passwordBasedMAC, with PBMParameter
value - MAC of the DER-encoded SubjectPublicKeyInfo
Method Detail

getInstance

public static PKMACValue getInstance(java.lang.Object o)

getInstance

public static PKMACValue getInstance(ASN1TaggedObject obj,
                                     boolean isExplicit)

getAlgId

public AlgorithmIdentifier getAlgId()

getValue

public DERBitString getValue()

toASN1Object

public DERObject toASN1Object()
 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:
toASN1Object in class ASN1Encodable
Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.46