org.mozilla.jss.pkcs7

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)
Write this value's DER encoding to an output stream using its own base tag.
void
encode(Tag implicitTag, OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.
ContentInfo
getContentInfo()
OCTET_STRING
getDigest()
AlgorithmIdentifier
getDigestAlgorithm()
Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
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
Write this value's DER encoding to an output stream using its own base tag.
Specified by:
encode in interface ASN1Value

encode

public void encode(Tag implicitTag,
                   OutputStream ostream)
            throws IOException
Write this value's DER encoding to an output stream using an implicit tag.
Specified by:
encode in interface ASN1Value

getContentInfo

public ContentInfo getContentInfo()

getDigest

public OCTET_STRING getDigest()

getDigestAlgorithm

public AlgorithmIdentifier getDigestAlgorithm()

getTag

public Tag getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
Specified by:
getTag in interface ASN1Value

getVersion

public INTEGER getVersion()