public class CMSDigestedDataInputConnector extends java.lang.Object implements CMSInputConnector
CMSDigestedDataInputConnector is used in place of a CMSDigestedDataInputStream
when reading nested CMS objects containing digested-data structures.
A CMSDigestedDataInputConnector is essentially a input stream filter that unwraps the
CMS digested-data structure from the data read in. A
CMSDigestedDataInputConnector expects the Content field of the CMS ContentInfo
structure i.e. the underlying input stream must be positioned just after the explicit [0] tag wrapper.
CMSInputConnector,
CMSDigestedDataInputStream| Constructor and Description |
|---|
CMSDigestedDataInputConnector(CMSInputConnector conn)
Creates a
CMSDigestedDataInputConnector. |
CMSDigestedDataInputConnector(java.io.InputStream in)
Creates a
CMSDigestedDataInputConnector. |
| Modifier and Type | Method and Description |
|---|---|
ASN1ObjectID |
getEnclosedContentType()
Returns the content type of the digested data.
|
java.io.InputStream |
getInputStream()
Returns the input stream governing this connector.
|
public CMSDigestedDataInputConnector(java.io.InputStream in)
CMSDigestedDataInputConnector.in - The underlying input stream.public CMSDigestedDataInputConnector(CMSInputConnector conn)
CMSDigestedDataInputConnector.conn - The underlying input connector.public ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
getEnclosedContentType in interface CMSInputConnectorjava.io.IOException - An I/O error occurs or the input encoding is incorrect.public java.io.InputStream getInputStream()
getInputStream in interface CMSInputConnector