Package org.bouncycastle.cms
Class CMSDigestedData
java.lang.Object
org.bouncycastle.cms.CMSDigestedData
- All Implemented Interfaces:
org.bouncycastle.util.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 TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifier
org.bouncycastle.asn1.x509.AlgorithmIdentifier
Return the digested contentbyte[]
return the ASN.1 encoded representation of this object.org.bouncycastle.asn1.cms.ContentInfo
return the ContentInfoboolean
verify
(DigestCalculatorProvider calculatorProvider)
-
Constructor Details
-
CMSDigestedData
- Throws:
CMSException
-
CMSDigestedData
- Throws:
CMSException
-
CMSDigestedData
- Throws:
CMSException
-
-
Method Details
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType() -
getDigestAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier 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:
getEncoded
in interfaceorg.bouncycastle.util.Encodable
- Throws:
IOException
-
verify
- Throws:
CMSException
-