Modifier and Type | Class and Description |
---|---|
static class |
DigestedData.Template
A Template for decoding BER-encoded DigestData items.
|
Constructor and Description |
---|
DigestedData(INTEGER version,
AlgorithmIdentifier digestAlgorithm,
ContentInfo contentInfo,
OCTET_STRING digest) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using
its own base tag.
|
void |
encode(Tag implicitTag,
java.io.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() |
public DigestedData(INTEGER version, AlgorithmIdentifier digestAlgorithm, ContentInfo contentInfo, OCTET_STRING digest)
public INTEGER getVersion()
public AlgorithmIdentifier getDigestAlgorithm()
public ContentInfo getContentInfo()
public OCTET_STRING getDigest()
public Tag getTag()
ASN1Value
public void encode(java.io.OutputStream ostream) throws java.io.IOException
ASN1Value