|
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.CMSAuthenticatedDataOutputConnector
A CMSAuthenticatedDataOutputConnector is used in place of a CMSAuthenticatedDataOutputStream when constructing nested CMS objects containing authenticated-data structures.
A CMSAuthenticatedDataOutputConnector is essentially an output stream filter that wraps the data written to it within a CMS authenticated-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, CMSOutputStream, CMSAuthenticatedDataOutputStream| Constructor Summary | |
CMSAuthenticatedDataOutputConnector(CMSOutputConnector conn, OriginatorInfo origInfo, java.util.Vector recipients, AlgorithmIdentifier macAlgorithm, AlgorithmIdentifier digestAlgID, ASN1ObjectID encapContentType, oracle.security.crypto.cert.AttributeSet authenticatedAttribs, oracle.security.crypto.cert.AttributeSet unauthenticatedAttribs, SymmetricKey hmacKey, boolean detachEncapContent)Creates a CMSAuthenticatedDataOutputConnector. |
|
CMSAuthenticatedDataOutputConnector(CMSOutputConnector conn, java.util.Vector recipients, AlgorithmIdentifier macAlgorithm, ASN1ObjectID encapContentType, SymmetricKey hmacKey, boolean detachEncapContent)Creates a CMSAuthenticatedDataOutputConnector. |
|
CMSAuthenticatedDataOutputConnector(java.io.OutputStream out, OriginatorInfo origInfo, java.util.Vector recipients, AlgorithmIdentifier macAlgorithm, AlgorithmIdentifier digestAlgID, ASN1ObjectID encapContentType, oracle.security.crypto.cert.AttributeSet authenticatedAttribs, oracle.security.crypto.cert.AttributeSet unauthenticatedAttribs, SymmetricKey hmacKey, boolean detachEncapContent)Creates a CMSAuthenticatedDataOutputConnector. |
|
CMSAuthenticatedDataOutputConnector(java.io.OutputStream out, java.util.Vector recipients, AlgorithmIdentifier macAlgorithm, ASN1ObjectID encapContentType, SymmetricKey hmacKey, boolean detachEncapContent)Creates a CMSAuthenticatedDataOutputConnector. |
|
| Method Summary | |
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 |
public CMSAuthenticatedDataOutputConnector(java.io.OutputStream out,
java.util.Vector recipients,
AlgorithmIdentifier macAlgorithm,
ASN1ObjectID encapContentType,
SymmetricKey hmacKey,
boolean detachEncapContent)
throws AlgorithmIdentifierException,
InvalidInputException
CMSAuthenticatedDataOutputConnector.out - The output stream.recipients - The recipients (each element must be an instance of CMSRecipientInfoSpec).macAlgorithm - The HMAC Algorithm.encapContentType - The content type of data being authenticated.hmacKey - The HMAC key.detachEncapContent - If true the authenticated content is not written to the underlying output stream; false otherwise.AlgorithmIdentifierException - Algorithm is not supported.InvalidInputException - Input appears to be invalid.
public CMSAuthenticatedDataOutputConnector(java.io.OutputStream out,
OriginatorInfo origInfo,
java.util.Vector recipients,
AlgorithmIdentifier macAlgorithm,
AlgorithmIdentifier digestAlgID,
ASN1ObjectID encapContentType,
oracle.security.crypto.cert.AttributeSet authenticatedAttribs,
oracle.security.crypto.cert.AttributeSet unauthenticatedAttribs,
SymmetricKey hmacKey,
boolean detachEncapContent)
throws AlgorithmIdentifierException,
InvalidInputException
CMSAuthenticatedDataOutputConnector.out - The output stream.origInfo - The Originator Info.recipients - The recipients (each element must be an instance of CMSRecipientInfoSpec).macAlgorithm - The HMAC Algorithm.encapContentType - The content type of data being authenticated.authenticatedAttribs - The set of Authenticated Attributes.unauthenticatedAttribs - The set of Unauthenticated Attributes.hmacKey - The HMAC key.detachEncapContent - If true the authenticated content is not written to the underlying output stream; false otherwise.AlgorithmIdentifierException - Algorithm is not supported.InvalidInputException - Input appears to be invalid.
public CMSAuthenticatedDataOutputConnector(CMSOutputConnector conn,
java.util.Vector recipients,
AlgorithmIdentifier macAlgorithm,
ASN1ObjectID encapContentType,
SymmetricKey hmacKey,
boolean detachEncapContent)
throws AlgorithmIdentifierException,
InvalidInputException
CMSAuthenticatedDataOutputConnector.conn - The output stream.recipients - The recipients (each element must be an instance of CMSRecipientInfoSpec).macAlgorithm - The HMAC Algorithm.encapContentType - The content type of data being authenticated.hmacKey - The HMAC key.detachEncapContent - If true the authenticated content is not written to the underlying output stream; false otherwise.AlgorithmIdentifierException - Algorithm is not supported.InvalidInputException - Input appears to be invalid.
public CMSAuthenticatedDataOutputConnector(CMSOutputConnector conn,
OriginatorInfo origInfo,
java.util.Vector recipients,
AlgorithmIdentifier macAlgorithm,
AlgorithmIdentifier digestAlgID,
ASN1ObjectID encapContentType,
oracle.security.crypto.cert.AttributeSet authenticatedAttribs,
oracle.security.crypto.cert.AttributeSet unauthenticatedAttribs,
SymmetricKey hmacKey,
boolean detachEncapContent)
throws AlgorithmIdentifierException,
InvalidInputException
CMSAuthenticatedDataOutputConnector.conn - The output connector.origInfo - The Originator Info.recipients - The recipients (each element must be an instance of CMSRecipientInfoSpec).macAlgorithm - The HMAC Algorithm.encapContentType - The content type of data being authenticated.authenticatedAttribs - The set of Authenticated Attributes.unauthenticatedAttribs - The set of Unauthenticated Attributes.hmacKey - The HMAC key.detachEncapContent - If true the authenticated content is not written to the underlying output stream; false otherwise.AlgorithmIdentifierException - Algorithm is not supported.InvalidInputException - Input appears to be invalid.| 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 | ||||||||