Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class CMSProcessableByteArray

extends Object
implements CMSTypedData, CMSReadable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.CMSReadable, org.bouncycastle.cms.CMSTypedData, org.bouncycastle.cms.CMSProcessable
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, .OutputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.cms.CMSObjectIdentifiers, org.bouncycastle.util.Arrays

a holding class for a byte array of data to be processed.

Field Summary

Modifier and TypeField and Description
private final byte[]
private final ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

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

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

bytesback to summary
private final byte[] bytes
typeback to summary
private final ASN1ObjectIdentifier type

Constructor Detail

CMSProcessableByteArrayback to summary
public CMSProcessableByteArray(byte[] bytes)
CMSProcessableByteArrayback to summary
public CMSProcessableByteArray(ASN1ObjectIdentifier type, byte[] bytes)

Method Detail

getContentback to summary
public Object getContent()

Implements org.bouncycastle.cms.CMSProcessable.getContent.

getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()

Implements org.bouncycastle.cms.CMSTypedData.getContentType.

getInputStreamback to summary
public InputStream getInputStream()

Implements org.bouncycastle.cms.CMSReadable.getInputStream.

writeback to summary
public void write(OutputStream zOut) 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.