Top Description Fields Constructors Methods
org.bouncycastle.asn1.crmf

public Class PKMACValue

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1BitString, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, .DERSequence, org.bouncycastle.asn1.cmp.CMPObjectIdentifiers, .PBMParameter, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Password-based MAC value for use with POPOSigningKeyInput.

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private ASN1BitString

Constructor Summary

AccessConstructor and Description
private
public
PKMACValue(PBMParameter
parameters for password-based MAC
params
,
DERBitString
MAC of the DER-encoded SubjectPublicKeyInfo
value
)

Creates a new PKMACValue.

public
PKMACValue(AlgorithmIdentifier
CMPObjectIdentifiers.passwordBasedMAC, with PBMParameter
aid
,
DERBitString
MAC of the DER-encoded SubjectPublicKeyInfo
value
)

Creates a new PKMACValue.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public static PKMACValue
public static PKMACValue
getInstance(ASN1TaggedObject obj, boolean isExplicit)

public ASN1BitString
public ASN1Primitive

Returns:

a basic ASN.1 object representation.
toASN1Primitive
()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

PKMACValue ::= SEQUENCE {
     algId  AlgorithmIdentifier,
     -- algorithm value shall be PasswordBasedMac 1.2.840.113533.7.66.13
     -- parameter value is PBMParameter
     value  BIT STRING }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

algIdback to summary
private AlgorithmIdentifier algId
valueback to summary
private ASN1BitString value

Constructor Detail

PKMACValueback to summary
private PKMACValue(ASN1Sequence seq)
PKMACValueback to summary
public PKMACValue(PBMParameter params, DERBitString value)

Creates a new PKMACValue.

Parameters
params:PBMParameter

parameters for password-based MAC

value:DERBitString

MAC of the DER-encoded SubjectPublicKeyInfo

PKMACValueback to summary
public PKMACValue(AlgorithmIdentifier aid, DERBitString value)

Creates a new PKMACValue.

Parameters
aid:AlgorithmIdentifier

CMPObjectIdentifiers.passwordBasedMAC, with PBMParameter

value:DERBitString

MAC of the DER-encoded SubjectPublicKeyInfo

Method Detail

getAlgIdback to summary
public AlgorithmIdentifier getAlgId()
getInstanceback to summary
public static PKMACValue getInstance(Object o)
getInstanceback to summary
public static PKMACValue getInstance(ASN1TaggedObject obj, boolean isExplicit)
getValueback to summary
public ASN1BitString getValue()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

PKMACValue ::= SEQUENCE {
     algId  AlgorithmIdentifier,
     -- algorithm value shall be PasswordBasedMac 1.2.840.113533.7.66.13
     -- parameter value is PBMParameter
     value  BIT STRING }
Returns:ASN1Primitive

a basic ASN.1 object representation.