org.mozilla.jss.pkix.cms

Class DigestedData

Implemented Interfaces:
ASN1Value

public class DigestedData
extends java.lang.Object
implements ASN1Value

Nested Class Summary

static class
DigestedData.Template
A Template for decoding BER-encoded DigestData items.

Constructor Summary

DigestedData(INTEGER version, AlgorithmIdentifier digestAlgorithm, ContentInfo contentInfo, OCTET_STRING digest)

Method Summary

void
encode(OutputStream ostream)
void
encode(Tag implicitTag, OutputStream ostream)
ContentInfo
getContentInfo()
OCTET_STRING
getDigest()
AlgorithmIdentifier
getDigestAlgorithm()
Tag
getTag()
INTEGER
getVersion()

Constructor Details

DigestedData

public DigestedData(INTEGER version,
                    AlgorithmIdentifier digestAlgorithm,
                    ContentInfo contentInfo,
                    OCTET_STRING digest)

Method Details

encode

public void encode(OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Specified by:
encode in interface ASN1Value

getContentInfo

public ContentInfo getContentInfo()

getDigest

public OCTET_STRING getDigest()

getDigestAlgorithm

public AlgorithmIdentifier getDigestAlgorithm()

getTag

public Tag getTag()
Specified by:
getTag in interface ASN1Value

getVersion

public INTEGER getVersion()