Top Fields Constructors Methods
org.bouncycastle.asn1.pkcs

public Class MacData

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.DigestInfo, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
pack-priv DigestInfo
pack-priv BigInteger
private static final BigInteger
pack-priv byte[]

Constructor Summary

AccessConstructor and Description
private
public
MacData(DigestInfo digInfo, byte[] salt, int iterationCount)

Method Summary

Modifier and TypeMethod and Description
public static MacData
public BigInteger
public DigestInfo
public byte[]
public ASN1Primitive

Returns:

the basic ASN1Primitive construction.
toASN1Primitive
()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

MacData ::= SEQUENCE {
    mac      DigestInfo,
    macSalt  OCTET STRING,
    iterations INTEGER DEFAULT 1
    -- Note: The default is for historic reasons and its use is deprecated.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

digInfoback to summary
pack-priv DigestInfo digInfo
iterationCountback to summary
pack-priv BigInteger iterationCount
ONEback to summary
private static final BigInteger ONE
saltback to summary
pack-priv byte[] salt

Constructor Detail

MacDataback to summary
private MacData(ASN1Sequence seq)
MacDataback to summary
public MacData(DigestInfo digInfo, byte[] salt, int iterationCount)

Method Detail

getInstanceback to summary
public static MacData getInstance(Object obj)
getIterationCountback to summary
public BigInteger getIterationCount()
getMacback to summary
public DigestInfo getMac()
getSaltback to summary
public byte[] getSalt()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

MacData ::= SEQUENCE {
    mac      DigestInfo,
    macSalt  OCTET STRING,
    iterations INTEGER DEFAULT 1
    -- Note: The default is for historic reasons and its use is deprecated. A
    -- higher value, like 1024 is recommended.
Returns:ASN1Primitive

the basic ASN1Primitive construction.