Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class CMSDigestedData

extends Object
implements Encodable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.util.Encodable
Imports
java.io.IOException, .InputStream, .OutputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, .ASN1OctetString, org.bouncycastle.asn1.cms.ContentInfo, .DigestedData, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.operator.DigestCalculator, .DigestCalculatorProvider, .OperatorCreationException, org.bouncycastle.util.Arrays, .Encodable

containing class for an CMS Digested Data object
    CMSDigestedData cd = new CMSDigestedData(inputStream);


    process(cd.getContent());

Field Summary

Modifier and TypeField and Description
private ContentInfo
private DigestedData

Constructor Summary

AccessConstructor and Description
public
CMSDigestedData(byte[] compressedData)

public
CMSDigestedData(InputStream compressedData)

public

Method Summary

Modifier and TypeMethod and Description
public ASN1ObjectIdentifier
public AlgorithmIdentifier
public CMSProcessable

Returns:

the digested content
getDigestedContent
()

Return the digested content

public byte[]
getEncoded()

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.

public ContentInfo
toASN1Structure()

return the ContentInfo

public boolean
verify(DigestCalculatorProvider calculatorProvider)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentInfoback to summary
private ContentInfo contentInfo
digestedDataback to summary
private DigestedData digestedData

Constructor Detail

CMSDigestedDataback to summary
public CMSDigestedData(byte[] compressedData) throws CMSException
CMSDigestedDataback to summary
public CMSDigestedData(InputStream compressedData) throws CMSException
CMSDigestedDataback to summary
public CMSDigestedData(ContentInfo contentInfo) throws CMSException

Method Detail

getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()
getDigestAlgorithmback to summary
public AlgorithmIdentifier getDigestAlgorithm()
getDigestedContentback to summary
public CMSProcessable getDigestedContent() throws CMSException

Return the digested content

Returns:CMSProcessable

the digested content

Exceptions
CMSException:
if there is an exception un-compressing the data.
getEncodedback to summary
public byte[] getEncoded() throws IOException

Implements org.bouncycastle.util.Encodable.getEncoded.

return the ASN.1 encoded representation of this object.

Returns:byte[]

Doc from org.bouncycastle.util.Encodable.getEncoded.

a byte array representing the encoding.

Exceptions
IOException:

Doc from org.bouncycastle.util.Encodable.getEncoded.

if an issue arises generation the encoding.

toASN1Structureback to summary
public ContentInfo toASN1Structure()

return the ContentInfo

verifyback to summary
public boolean verify(DigestCalculatorProvider calculatorProvider) throws CMSException