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

B28170-01


oracle.security.crypto.cms
Class CMSAuthenticatedDataInputConnector

java.lang.Object
  extended byoracle.security.crypto.cms.CMSAuthenticatedDataInputConnector

All Implemented Interfaces:
CMSInputConnector

public class CMSAuthenticatedDataInputConnector
extends java.lang.Object
implements CMSInputConnector

A CMSAuthenticatedDataInputConnector is used in place of a CMSAuthenticatedDataInputStream when reading nested CMS objects containing authenticated-data structures.

A CMSAuthenticatedDataInputConnector is essentially a input stream filter that unwraps the CMS authenticated-data structure from the data read in. A CMSAuthenticatedDataInputConnector expects the Content field of the CMS ContentInfo structure i.e. the underlying input stream must be positioned just after the explicit [0] tag wrapper.

See Also:
CMSInputConnector, CMSAuthenticatedDataInputStream

Constructor Summary
CMSAuthenticatedDataInputConnector(CMSInputConnector conn, oracle.security.crypto.core.PrivateKey recipientPrivateKey, oracle.security.crypto.cert.X509 recipientCert)
          Creates a CMSAuthenticatedDataInputConnector.
CMSAuthenticatedDataInputConnector(CMSInputConnector conn, oracle.security.crypto.core.SymmetricKey keyEncryptionKey)
          Creates a CMSAuthenticatedDataInputConnector.
CMSAuthenticatedDataInputConnector(java.io.InputStream in, oracle.security.crypto.core.PrivateKey recipientPrivateKey, oracle.security.crypto.cert.X509 recipientCert)
          Creates a CMSAuthenticatedDataInputConnector.
CMSAuthenticatedDataInputConnector(java.io.InputStream in, oracle.security.crypto.core.SymmetricKey keyEncryptionKey)
          Creates a CMSAuthenticatedDataInputConnector.

 

Method Summary
 oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
          Returns the content type of the authenticated content.
 java.io.InputStream getInputStream()
          Returns the input stream governing this connector.

 

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

 

Constructor Detail

CMSAuthenticatedDataInputConnector

public CMSAuthenticatedDataInputConnector(java.io.InputStream in,
                                          oracle.security.crypto.core.PrivateKey recipientPrivateKey,
                                          oracle.security.crypto.cert.X509 recipientCert)
Creates a CMSAuthenticatedDataInputConnector.
Parameters:
in - The underlying input stream.
recipientPrivateKey - The recipient's private key.
recipientCert - The recipient's certificate.

CMSAuthenticatedDataInputConnector

public CMSAuthenticatedDataInputConnector(java.io.InputStream in,
                                          oracle.security.crypto.core.SymmetricKey keyEncryptionKey)
Creates a CMSAuthenticatedDataInputConnector.
Parameters:
in - The underlying input stream.
keyEncryptionKey - The recipient's key unwrap key.

CMSAuthenticatedDataInputConnector

public CMSAuthenticatedDataInputConnector(CMSInputConnector conn,
                                          oracle.security.crypto.core.PrivateKey recipientPrivateKey,
                                          oracle.security.crypto.cert.X509 recipientCert)
Creates a CMSAuthenticatedDataInputConnector.
Parameters:
conn - The underlying input connector.
recipientPrivateKey - The recipient's private key.
recipientCert - The recipient's certificate.

CMSAuthenticatedDataInputConnector

public CMSAuthenticatedDataInputConnector(CMSInputConnector conn,
                                          oracle.security.crypto.core.SymmetricKey keyEncryptionKey)
Creates a CMSAuthenticatedDataInputConnector.
Parameters:
conn - The underlying input connector.
keyEncryptionKey - The recipient's key unwrap key.

Method Detail

getEnclosedContentType

public oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
                                                                throws java.io.IOException
Returns the content type of the authenticated content.
Specified by:
getEnclosedContentType in interface CMSInputConnector
Returns:
The content type identifier.
Throws:
java.io.IOException - An I/O error occurred or the input encoding is incorrect.

getInputStream

public java.io.InputStream getInputStream()
Returns the input stream governing this connector.
Specified by:
getInputStream in interface CMSInputConnector
Returns:
The underlying input stream.

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

B28170-01


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