public class DigestedData
extends org.bouncycastle.asn1.ASN1Object
DigestedData ::= SEQUENCE { version CMSVersion, digestAlgorithm DigestAlgorithmIdentifier, encapContentInfo EncapsulatedContentInfo, digest Digest }
Constructor and Description |
---|
DigestedData(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm,
ContentInfo encapContentInfo,
byte[] digest) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getDigest() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithm() |
ContentInfo |
getEncapContentInfo() |
static DigestedData |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject ato,
boolean isExplicit)
Return a DigestedData object from a tagged object.
|
static DigestedData |
getInstance(java.lang.Object obj)
Return a DigestedData object from the given object.
|
org.bouncycastle.asn1.ASN1Integer |
getVersion() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public DigestedData(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, ContentInfo encapContentInfo, byte[] digest)
public static DigestedData getInstance(org.bouncycastle.asn1.ASN1TaggedObject ato, boolean isExplicit)
ato
- the tagged object holding the object we want.isExplicit
- true if the object is meant to be explicitly
tagged false otherwise.java.lang.IllegalArgumentException
- if the object held by the
tagged object cannot be converted.public static DigestedData getInstance(java.lang.Object obj)
Accepted inputs:
DigestedData
object
ASN1Sequence
input formats
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.ASN1Integer getVersion()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
public ContentInfo getEncapContentInfo()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object
public byte[] getDigest()