Skip navigation links

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

E10667-02


oracle.security.crypto.cms
Class CMSSignedDataOutputConnector

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

All Implemented Interfaces:
CMSOutputConnector

public class CMSSignedDataOutputConnector
extends java.lang.Object
implements CMSOutputConnector

A CMSSignedDataOutputConnector is used in place of a CMSSignedDataOutputStream when constructing nested CMS objects containing signed-data structures.

A CMSSignedDataOutputConnector is essentially an output stream filter that wraps the data written to it within a CMS signed-data structure. Only the Content field of the CMS ContentInfo structure minus the the explicit [0] tag wrapper is written to the underlying output stream.

See Also:
CMSOutputConnector, CMSSignedDataOutputStream

Constructor Summary
CMSSignedDataOutputConnector(CMSOutputConnector conn, java.util.Vector signers, java.util.Vector certificates, java.util.Vector crls, oracle.security.crypto.asn1.ASN1ObjectID contentType, boolean createExternalSignatures)
          Creates a CMSSignedDataOutputConnector.
CMSSignedDataOutputConnector(java.io.OutputStream out, java.util.Vector signers, java.util.Vector certificates, java.util.Vector crls, oracle.security.crypto.asn1.ASN1ObjectID contentType, boolean createExternalSignatures)
          Creates a CMSSignedDataOutputConnector.

 

Method Summary
 oracle.security.crypto.asn1.ASN1ObjectID getExposedContentType()
          Returns the content type of the data that is output to the underlying output stream.
 java.io.OutputStream getOutputStream()
          Returns the output stream governed by this connector.

 

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

 

Constructor Detail

CMSSignedDataOutputConnector

public CMSSignedDataOutputConnector(java.io.OutputStream out,
                                    java.util.Vector signers,
                                    java.util.Vector certificates,
                                    java.util.Vector crls,
                                    oracle.security.crypto.asn1.ASN1ObjectID contentType,
                                    boolean createExternalSignatures)
                             throws java.security.NoSuchAlgorithmException
Creates a CMSSignedDataOutputConnector.

Note the change in the exceptions thrown

Exceptions no longer thrown : AlgorithmIdentifierException

Exceptions introduced : NoSuchAlgorithmException

Parameters:
out - The underlying output stream.
signers - A collection of signers i.e CMSSignerInfo Objects.
certificates - A collection of Certificates that are to be be added to the signed-data Object.
crls - A collection of CRL's that are to be be added to the signed-data Object.
contentType - The content type of the enclosed data that is being signed.
createExternalSignatures - Specify whether External Signatures are to be created i.e. signed content is not written to the output stream.
Throws:
java.security.NoSuchAlgorithmException - An error occurred during the initialization

CMSSignedDataOutputConnector

public CMSSignedDataOutputConnector(CMSOutputConnector conn,
                                    java.util.Vector signers,
                                    java.util.Vector certificates,
                                    java.util.Vector crls,
                                    oracle.security.crypto.asn1.ASN1ObjectID contentType,
                                    boolean createExternalSignatures)
                             throws java.security.NoSuchAlgorithmException
Creates a CMSSignedDataOutputConnector.

Note the change in the exceptions thrown

Exceptions no longer thrown : AlgorithmIdentifierException

Exceptions introduced : NoSuchAlgorithmException

Parameters:
conn - The underlying output connector.
signers - A collection of signers i.e CMSSignerInfo Objects.
certificates - A collection of Certificates that are to be be added to the signed-data Object.
crls - A collection of CRL's that are to be be added to the signed-data Object.
contentType - The content type of the enclosed data that is being signed.
createExternalSignatures - Specify whether external signatures are to be created i.e. signed content is not written to the output stream.
Throws:
java.security.NoSuchAlgorithmException - An error occurred during the initialization

Method Detail

getExposedContentType

public oracle.security.crypto.asn1.ASN1ObjectID getExposedContentType()
Returns the content type of the data that is output to the underlying output stream.
Specified by:
getExposedContentType in interface CMSOutputConnector
Returns:
The content type identifier.

getOutputStream

public java.io.OutputStream getOutputStream()
Returns the output stream governed by this connector.
Specified by:
getOutputStream in interface CMSOutputConnector
Returns:
The underlying output 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.