Skip navigation links

Oracle Security Developer Tools CMS Java API Reference
11g (11.1.1)

E10667-02


oracle.security.crypto.cms
Class CMSSignedDataInputConnector

java.lang.Object
  extended by oracle.security.crypto.cms.CMSSignedDataInputConnector

All Implemented Interfaces:
CMSInputConnector

public class CMSSignedDataInputConnector
extends java.lang.Object
implements CMSInputConnector

A CMSSignedDataInputConnector is used in place of a CMSSignedDataInputStream when reading nested CMS objects containing signed-data structures.

A CMSSignedDataInputConnector is essentially a input stream filter that unwraps the CMS signed-data structure from the data read in. A CMSSignedDataInputConnector 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.

See Also:
CMSInputConnector, CMSSignedDataInputStream

Constructor Summary
CMSSignedDataInputConnector(CMSInputConnector conn)
          Creates a CMSSignedDataInputConnector.
CMSSignedDataInputConnector(java.io.InputStream in)
          Creates a CMSSignedDataInputConnector.

 

Method Summary
 oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
          Returns the content type of the signed data.
 java.io.InputStream getInputStream()
          Returns the input stream governing this connector.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CMSSignedDataInputConnector

public CMSSignedDataInputConnector(java.io.InputStream in)
Creates a CMSSignedDataInputConnector.
Parameters:
in - The underlying input stream.

CMSSignedDataInputConnector

public CMSSignedDataInputConnector(CMSInputConnector conn)
Creates a CMSSignedDataInputConnector.
Parameters:
conn - The underlying input connector.

Method Detail

getEnclosedContentType

public oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
                                                                throws java.io.IOException
Returns the content type of the signed data.
Specified by:
getEnclosedContentType in interface CMSInputConnector
Returns:
The content type identifier.
Throws:
java.io.IOException - An I/O error occurred or the input encoding is incorrect.

getInputStream

public java.io.InputStream getInputStream()
Returns the input stream governing this connector.
Specified by:
getInputStream in interface CMSInputConnector
Returns:
The underlying input stream.

Skip navigation links

Oracle Security Developer Tools CMS Java API Reference
11g (11.1.1)

E10667-02


Copyright © 2005, 2009, Oracle. All rights reserved.