org.bouncycastle.util.Encodable
public class CMSDigestedData
extends java.lang.Object
implements org.bouncycastle.util.Encodable
CMSDigestedData cd = new CMSDigestedData(inputStream); process(cd.getContent());
Constructor | Description |
---|---|
CMSDigestedData(byte[] compressedData) |
|
CMSDigestedData(java.io.InputStream compressedData) |
|
CMSDigestedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) |
Modifier and Type | Method | Description |
---|---|---|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getContentType() |
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithm() |
|
CMSProcessable |
getDigestedContent() |
Return the digested content
|
byte[] |
getEncoded() |
return the ASN.1 encoded representation of this object.
|
org.bouncycastle.asn1.cms.ContentInfo |
toASN1Structure() |
return the ContentInfo
|
boolean |
verify(DigestCalculatorProvider calculatorProvider) |
public CMSDigestedData(byte[] compressedData) throws CMSException
CMSException
public CMSDigestedData(java.io.InputStream compressedData) throws CMSException
CMSException
public CMSDigestedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws CMSException
CMSException
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
public CMSProcessable getDigestedContent() throws CMSException
CMSException
- if there is an exception un-compressing the data.public org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()
public byte[] getEncoded() throws java.io.IOException
getEncoded
in interface org.bouncycastle.util.Encodable
java.io.IOException
public boolean verify(DigestCalculatorProvider calculatorProvider) throws CMSException
CMSException