Package org.bouncycastle.cms
Class CMSProcessableByteArray
- java.lang.Object
-
- org.bouncycastle.cms.CMSProcessableByteArray
-
- All Implemented Interfaces:
CMSProcessable
,CMSTypedData
public class CMSProcessableByteArray extends Object implements CMSTypedData
a holding class for a byte array of data to be processed.
-
-
Constructor Summary
Constructors Constructor Description CMSProcessableByteArray(byte[] bytes)
CMSProcessableByteArray(org.bouncycastle.asn1.ASN1ObjectIdentifier type, byte[] bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getContent()
org.bouncycastle.asn1.ASN1ObjectIdentifier
getContentType()
InputStream
getInputStream()
void
write(OutputStream zOut)
generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
-
write
public void write(OutputStream zOut) throws IOException, CMSException
Description copied from interface:CMSProcessable
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.
- Specified by:
write
in interfaceCMSProcessable
- Throws:
IOException
CMSException
-
getContent
public Object getContent()
- Specified by:
getContent
in interfaceCMSProcessable
-
getContentType
public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType()
- Specified by:
getContentType
in interfaceCMSTypedData
-
-