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