public class

PKMACValue

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.crmf.PKMACValue

Class Overview

Password-based MAC value for use with POPOSigningKeyInput.

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Public Constructors
PKMACValue(PBMParameter params, DERBitString value)
Creates a new PKMACValue.
PKMACValue(AlgorithmIdentifier aid, DERBitString value)
Creates a new PKMACValue.
Public Methods
AlgorithmIdentifier getAlgId()
static PKMACValue getInstance(ASN1TaggedObject obj, boolean isExplicit)
static PKMACValue getInstance(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 }
 
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Public Constructors

public PKMACValue (PBMParameter params, DERBitString value)

Creates a new PKMACValue.

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

public PKMACValue (AlgorithmIdentifier aid, DERBitString value)

Creates a new PKMACValue.

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

Public Methods

public AlgorithmIdentifier getAlgId ()

public static PKMACValue getInstance (ASN1TaggedObject obj, boolean isExplicit)

public static PKMACValue getInstance (Object o)

public DERBitString getValue ()

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 }
 

Returns
  • a basic ASN.1 object representation.