|
Oracle Security Developer Tools CMS Java API Reference 10g Release 2 (10.1.2.0.2) B15564-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.cms.CMSEnvelopedDataOutputConnector
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.
CMSOutputConnector, CMSEnvelopedDataOutputStream| Constructor Summary | |
CMSEnvelopedDataOutputConnector(CMSOutputConnector conn, ASN1ObjectID enclosedContentType, AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients, boolean writeContent)Creates a CMSEnvelopedDataOutputConnector. |
|
CMSEnvelopedDataOutputConnector(CMSOutputConnector conn, ASN1ObjectID enclosedContentType, AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients, boolean writeContent, OriginatorInfo origInfo, oracle.security.crypto.cert.AttributeSet unprotectedAttribs)Creates a CMSEnvelopedDataOutputConnector. |
|
CMSEnvelopedDataOutputConnector(java.io.OutputStream out, ASN1ObjectID enclosedContentType, AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients)Creates a CMSEnvelopedDataOutputConnector. |
|
CMSEnvelopedDataOutputConnector(java.io.OutputStream out, ASN1ObjectID enclosedContentType, AlgorithmIdentifier contentEncryptionAlgID, java.util.Vector recipients, boolean writeContent, OriginatorInfo origInfo, oracle.security.crypto.cert.AttributeSet unprotectedAttribs)Creates a CMSEnvelopedDataOutputConnector. |
|
| Method Summary | |
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 |
public CMSEnvelopedDataOutputConnector(java.io.OutputStream out,
ASN1ObjectID enclosedContentType,
AlgorithmIdentifier contentEncryptionAlgID,
java.util.Vector recipients)
throws AlgorithmIdentifierException
CMSEnvelopedDataOutputConnector.out - The underlying output stream.enclosedContentType - The enclosed content type.contentEncryptionAlgID - The content encryption algorithm.recipients - A list of recipients.AlgorithmIdentifierException - Unrecognized encryption algorithm.
public CMSEnvelopedDataOutputConnector(java.io.OutputStream out,
ASN1ObjectID enclosedContentType,
AlgorithmIdentifier contentEncryptionAlgID,
java.util.Vector recipients,
boolean writeContent,
OriginatorInfo origInfo,
oracle.security.crypto.cert.AttributeSet unprotectedAttribs)
throws AlgorithmIdentifierException
CMSEnvelopedDataOutputConnector.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.AlgorithmIdentifierException - Unrecognized encryption algorithm.
public CMSEnvelopedDataOutputConnector(CMSOutputConnector conn,
ASN1ObjectID enclosedContentType,
AlgorithmIdentifier contentEncryptionAlgID,
java.util.Vector recipients,
boolean writeContent)
throws AlgorithmIdentifierException
CMSEnvelopedDataOutputConnector.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.AlgorithmIdentifierException - Unrecognized encryption algorithm.
public CMSEnvelopedDataOutputConnector(CMSOutputConnector conn,
ASN1ObjectID enclosedContentType,
AlgorithmIdentifier contentEncryptionAlgID,
java.util.Vector recipients,
boolean writeContent,
OriginatorInfo origInfo,
oracle.security.crypto.cert.AttributeSet unprotectedAttribs)
throws AlgorithmIdentifierException
CMSEnvelopedDataOutputConnector.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.AlgorithmIdentifierException - Unrecognized encryption algorithm.| Method Detail |
public ASN1ObjectID getExposedContentType()
getExposedContentType in interface CMSOutputConnectorpublic java.io.OutputStream getOutputStream()
getOutputStream in interface CMSOutputConnector
|
Oracle Security Developer Tools CMS Java API Reference 10g Release 2 (10.1.2.0.2) B15564-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||