Oracle Security Developer Tools CMS Java API Reference
10g (10.1.4.0.1)

B28170-01


oracle.security.crypto.cms
Class CMSEnvelopedDataOutputConnector

java.lang.Object
  extended byoracle.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 oracle.security.crypto.core.AlgorithmIdentifierException
Creates a CMSEnvelopedDataOutputConnector.
Parameters:
out - The underlying output stream.
enclosedContentType - The enclosed content type.
contentEncryptionAlgID - The content encryption algorithm.
recipients - A list of recipients.
Throws:
oracle.security.crypto.core.AlgorithmIdentifierException - 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 oracle.security.crypto.core.AlgorithmIdentifierException
Creates a CMSEnvelopedDataOutputConnector.
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:
oracle.security.crypto.core.AlgorithmIdentifierException - 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 oracle.security.crypto.core.AlgorithmIdentifierException
Creates a CMSEnvelopedDataOutputConnector.
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:
oracle.security.crypto.core.AlgorithmIdentifierException - 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 oracle.security.crypto.core.AlgorithmIdentifierException
Creates a CMSEnvelopedDataOutputConnector.
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:
oracle.security.crypto.core.AlgorithmIdentifierException - 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.

Oracle Security Developer Tools CMS Java API Reference
10g (10.1.4.0.1)

B28170-01


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