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

public Class DigestInfo

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence, org.bouncycastle.util.Arrays

The DigestInfo object.
DigestInfo::=SEQUENCE{
         digestAlgorithm  AlgorithmIdentifier,
         digest OCTET STRING }

Field Summary

Modifier and TypeField and Description
private AlgorithmIdentifier
private byte[]

Constructor Summary

AccessConstructor and Description
public
DigestInfo(AlgorithmIdentifier algId, byte[] digest)

public

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier
public byte[]
public static DigestInfo
getInstance(ASN1TaggedObject obj, boolean explicit)

public static DigestInfo
public ASN1Primitive
toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

algIdback to summary
private AlgorithmIdentifier algId
digestback to summary
private byte[] digest

Constructor Detail

DigestInfoback to summary
public DigestInfo(AlgorithmIdentifier algId, byte[] digest)
DigestInfoback to summary
public DigestInfo(ASN1Sequence obj)

Method Detail

getAlgorithmIdback to summary
public AlgorithmIdentifier getAlgorithmId()
getDigestback to summary
public byte[] getDigest()
getInstanceback to summary
public static DigestInfo getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static DigestInfo getInstance(Object obj)
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

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

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.