Top Description Fields Constructors Methods
org.apache.pdfbox.examples.signature

pack-priv Class CMSProcessableInputStream

extends Object
implements CMSTypedData
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.CMSTypedData, org.bouncycastle.cms.CMSProcessable
Imports
org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.cms.CMSObjectIdentifiers, org.bouncycastle.cms.CMSException, .CMSTypedData, java.io.IOException, .InputStream, .OutputStream, org.apache.pdfbox.io.IOUtils

Wraps a InputStream into a CMSProcessable object for bouncy castle. It's a memory saving alternative to the CMSProcessableByteArray class.
Author
Thomas Chojecki

Field Summary

Modifier and TypeField and Description
private final ASN1ObjectIdentifier
private final InputStream

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
public ASN1ObjectIdentifier
public void
write(OutputStream out)

Implements org.bouncycastle.cms.CMSProcessable.write.

generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentTypeback to summary
private final ASN1ObjectIdentifier contentType
inback to summary
private final InputStream in

Constructor Detail

CMSProcessableInputStreamback to summary
pack-priv CMSProcessableInputStream(InputStream is)
CMSProcessableInputStreamback to summary
pack-priv CMSProcessableInputStream(ASN1ObjectIdentifier type, InputStream is)

Method Detail

getContentback to summary
public Object getContent()

Implements org.bouncycastle.cms.CMSProcessable.getContent.

Annotations
@Override
getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()

Implements org.bouncycastle.cms.CMSTypedData.getContentType.

Annotations
@Override
writeback to summary
public void write(OutputStream out) throws IOException, CMSException

Implements org.bouncycastle.cms.CMSProcessable.write.

Doc from org.bouncycastle.cms.CMSProcessable.write.

generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.

Note

this routine may be called multiple times.

Annotations
@Override