Package org.bouncycastle.cms
Class CMSDigestedData
java.lang.Object
org.bouncycastle.cms.CMSDigestedData
- All Implemented Interfaces:
Encodable
containing class for an CMS Digested Data object
CMSDigestedData cd = new CMSDigestedData(inputStream);
process(cd.getContent());
-
Constructor Summary
ConstructorsConstructorDescriptionCMSDigestedData(byte[] compressedData) CMSDigestedData(InputStream compressedData) CMSDigestedData(org.bouncycastle.asn1.cms.ContentInfo contentInfo) -
Method Summary
Modifier and TypeMethodDescriptionReturn the digested contentbyte[]return the ASN.1 encoded representation of this object.org.bouncycastle.asn1.cms.ContentInforeturn the ContentInfobooleanverify(DigestCalculatorProvider calculatorProvider)
-
Constructor Details
-
CMSDigestedData
- Throws:
CMSException
-
CMSDigestedData
- Throws:
CMSException
-
CMSDigestedData
- Throws:
CMSException
-
-
Method Details
-
getContentType
-
getDigestAlgorithm
-
getDigestedContent
Return the digested content- Returns:
- the digested content
- Throws:
CMSException- if there is an exception un-compressing the data.
-
toASN1Structure
public org.bouncycastle.asn1.cms.ContentInfo toASN1Structure()return the ContentInfo -
getEncoded
return the ASN.1 encoded representation of this object.- Specified by:
getEncodedin interfaceEncodable- Returns:
- a byte array representing the encoding.
- Throws:
IOException- if an issue arises generation the encoding.
-
verify
- Throws:
CMSException
-