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(ASN1ObjectIdentifier type, byte[] bytes) -
Method Summary
Modifier and Type Method Description ObjectgetContent()ASN1ObjectIdentifiergetContentType()InputStreamgetInputStream()voidwrite(OutputStream zOut)generic routine to copy out the data we want processed - the OutputStream passed in will do the handling on it's own.
-
Constructor Details
-
CMSProcessableByteArray
public CMSProcessableByteArray(byte[] bytes) -
CMSProcessableByteArray
-
-
Method Details
-
getInputStream
-
write
Description copied from interface:CMSProcessablegeneric 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:
writein interfaceCMSProcessable- Throws:
IOExceptionCMSException
-
getContent
- Specified by:
getContentin interfaceCMSProcessable
-
getContentType
- Specified by:
getContentTypein interfaceCMSTypedData
-