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

public Class DigestedData

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .BERSequence, .DEROctetString, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Arrays

RFC 5652 DigestedData object.
DigestedData ::= SEQUENCE {
      version CMSVersion,
      digestAlgorithm DigestAlgorithmIdentifier,
      encapContentInfo EncapsulatedContentInfo,
      digest Digest }

Field Summary

Modifier and TypeField and Description
private ASN1OctetString
private AlgorithmIdentifier
private ContentInfo
private ASN1Integer

Constructor Summary

AccessConstructor and Description
public
DigestedData(AlgorithmIdentifier digestAlgorithm, ContentInfo encapContentInfo, byte[] digest)

private

Method Summary

Modifier and TypeMethod and Description
public byte[]
public AlgorithmIdentifier
public ContentInfo
public static DigestedData
getInstance(ASN1TaggedObject
the tagged object holding the object we want.
ato
,
boolean
true if the object is meant to be explicitly tagged false otherwise.
isExplicit
)

Return a DigestedData object from a tagged object.

public static DigestedData
getInstance(Object
the object we want converted.
obj
)

Return a DigestedData object from the given object.

public ASN1Integer
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:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

digestback to summary
private ASN1OctetString digest
digestAlgorithmback to summary
private AlgorithmIdentifier digestAlgorithm
encapContentInfoback to summary
private ContentInfo encapContentInfo
versionback to summary
private ASN1Integer version

Constructor Detail

DigestedDataback to summary
public DigestedData(AlgorithmIdentifier digestAlgorithm, ContentInfo encapContentInfo, byte[] digest)
DigestedDataback to summary
private DigestedData(ASN1Sequence seq)

Method Detail

getDigestback to summary
public byte[] getDigest()
getDigestAlgorithmback to summary
public AlgorithmIdentifier getDigestAlgorithm()
getEncapContentInfoback to summary
public ContentInfo getEncapContentInfo()
getInstanceback to summary
public static DigestedData getInstance(ASN1TaggedObject ato, boolean isExplicit)

Return a DigestedData object from a tagged object.

Parameters
ato:ASN1TaggedObject

the tagged object holding the object we want.

isExplicit:boolean

true if the object is meant to be explicitly tagged false otherwise.

Exceptions
IllegalArgumentException:
if the object held by the tagged object cannot be converted.
getInstanceback to summary
public static DigestedData getInstance(Object obj)

Return a DigestedData object from the given object.

Accepted inputs:

Parameters
obj:Object

the object we want converted.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getVersionback to summary
public ASN1Integer getVersion()
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.