Skip navigation links

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

E10667-02


oracle.security.crypto.cms
Class CMSEnvelopedDataOutputConnector

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

All Implemented Interfaces:
CMSOutputConnector

public class CMSEnvelopedDataOutputConnector
extends java.lang.Object
implements CMSOutputConnector

A CMSEnvelopedDataOutputConnector is used in place of a CMSEnvelopedDataOutputStream when constructing nested CMS objects containing enveloped-data structures.

A CMSEnvelopedDataOutputConnector is essentially an output stream filter that wraps the data written to it within a CMS enveloped-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, CMSEnvelopedDataOutputStream

Constructor Summary
CMSEnvelopedDataOutputConnector(CMSOutputConnector conn, oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType, oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients, boolean writeContent)
          Creates a CMSEnvelopedDataOutputConnector.
CMSEnvelopedDataOutputConnector(CMSOutputConnector conn, oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType, oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients, boolean writeContent, OriginatorInfo origInfo, oracle.security.crypto.cert.AttributeSet unprotectedAttribs)
          Creates a CMSEnvelopedDataOutputConnector.
CMSEnvelopedDataOutputConnector(java.io.OutputStream out, oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType, oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients)
          Creates a CMSEnvelopedDataOutputConnector.
CMSEnvelopedDataOutputConnector(java.io.OutputStream out, oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType, oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients, boolean writeContent, OriginatorInfo origInfo, oracle.security.crypto.cert.AttributeSet unprotectedAttribs)
          Creates a CMSEnvelopedDataOutputConnector.

 

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

 

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

 

Constructor Detail

CMSEnvelopedDataOutputConnector

public CMSEnvelopedDataOutputConnector(java.io.OutputStream out,
                                       oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType,
                                       oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID,
                                       java.util.Vector recipients)
                                throws java.security.NoSuchAlgorithmException
Creates a CMSEnvelopedDataOutputConnector.

Note the changes in exceptions Exceptions not thrown -- AlgorithmIdentifierException Exceptions introduced -- NoSuchAlgorithmException

Parameters:
out - The underlying output stream.
enclosedContentType - The enclosed content type.
contentEncryptionAlgID - The content encryption algorithm.
recipients - A list of recipients.
Throws:
java.security.NoSuchAlgorithmException - Unrecognized encryption algorithm.

CMSEnvelopedDataOutputConnector

public CMSEnvelopedDataOutputConnector(java.io.OutputStream out,
                                       oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType,
                                       oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID,
                                       java.util.Vector recipients,
                                       boolean writeContent,
                                       OriginatorInfo origInfo,
                                       oracle.security.crypto.cert.AttributeSet unprotectedAttribs)
                                throws java.security.NoSuchAlgorithmException
Creates a CMSEnvelopedDataOutputConnector.

Note the changes in exceptions Exceptions not thrown -- AlgorithmIdentifierException Exceptions introduced -- NoSuchAlgorithmException

Parameters:
out - The output stream.
enclosedContentType - The content type of content being encrypted.
contentEncryptionAlgID - The content encryption algorithm.
recipients - The recipients (each element must be an instance of CMSRecipientInfoSpec).
writeContent - Indicates if enclosed content is to be written to the output stream.
origInfo - The OriginatorInfo.
unprotectedAttribs - The unprotected attributes.
Throws:
java.security.NoSuchAlgorithmException - Unrecognized encryption algorithm.

CMSEnvelopedDataOutputConnector

public CMSEnvelopedDataOutputConnector(CMSOutputConnector conn,
                                       oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType,
                                       oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID,
                                       java.util.Vector recipients,
                                       boolean writeContent)
                                throws java.security.NoSuchAlgorithmException
Creates a CMSEnvelopedDataOutputConnector.

Note the changes in exceptions Exceptions not thrown -- AlgorithmIdentifierException Exceptions introduced -- NoSuchAlgorithmException

Parameters:
conn - The underlying output connector.
enclosedContentType - The enclosed content type.
contentEncryptionAlgID - The content encryption algorithm.
recipients - A list of recipients.
writeContent - true if the encrypted content is to be written to the underlying output stream; false otherwise.
Throws:
java.security.NoSuchAlgorithmException - Unrecognized encryption algorithm.

CMSEnvelopedDataOutputConnector

public CMSEnvelopedDataOutputConnector(CMSOutputConnector conn,
                                       oracle.security.crypto.asn1.ASN1ObjectID enclosedContentType,
                                       oracle.security.crypto.core.AlgorithmIdentifier contentEncryptionAlgID,
                                       java.util.Vector recipients,
                                       boolean writeContent,
                                       OriginatorInfo origInfo,
                                       oracle.security.crypto.cert.AttributeSet unprotectedAttribs)
                                throws java.security.NoSuchAlgorithmException
Creates a CMSEnvelopedDataOutputConnector.

Note the changes in exceptions Exceptions not thrown -- AlgorithmIdentifierException Exceptions introduced -- NoSuchAlgorithmException

Parameters:
conn - The output connector.
enclosedContentType - The content type of content being encrypted.
contentEncryptionAlgID - The content encryption algorithm.
recipients - The recipients (each element must be an instance of CMSRecipientInfoSpec).
writeContent - Indicates if enclosed content is to be written to the output stream.
origInfo - The OriginatorInfo.
unprotectedAttribs - The unprotected attributes.
Throws:
java.security.NoSuchAlgorithmException - Unrecognized encryption algorithm.

Method Detail

getExposedContentType

public oracle.security.crypto.asn1.ASN1ObjectID getExposedContentType()
Retruns 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 underlying output stream.
Specified by:
getOutputStream in interface CMSOutputConnector
Returns:
The 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.