|
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.CMSEncryptedDataInputConnector
A CMSEncryptedDataInputConnector
is used in place of a CMSEncryptedDataInputStream
when reading nested CMS objects containing encrypted-data
structures.
A CMSEncryptedDataInputConnector
is essentially a input stream filter that unwraps the CMS encrypted-data
structure from the data read in. A CMSEncryptedDataInputConnector
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.
CMSInputConnector
, CMSEncryptedDataInputStream
Constructor Summary | |
CMSEncryptedDataInputConnector(CMSInputConnector conn, SymmetricKey contentEncryptionKey) Creates a CMSEncryptedDataInputConnector . |
|
CMSEncryptedDataInputConnector(java.io.InputStream in, SymmetricKey contentEncryptionKey) Creates a CMSEncryptedDataInputConnector . |
Method Summary | |
ASN1ObjectID |
getEnclosedContentType() Returns the content type of the encrypted content. |
java.io.InputStream |
getInputStream() Returns the underlying 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 |
public CMSEncryptedDataInputConnector(java.io.InputStream in, SymmetricKey contentEncryptionKey)
CMSEncryptedDataInputConnector
.in
- The underlying input stream.contentEncryptionKey
- The content decryption key.public CMSEncryptedDataInputConnector(CMSInputConnector conn, SymmetricKey contentEncryptionKey)
CMSEncryptedDataInputConnector
.conn
- The underlying input connector.contentEncryptionKey
- The content decryption key.Method Detail |
public ASN1ObjectID getEnclosedContentType() throws java.io.IOException
getEnclosedContentType
in interface CMSInputConnector
java.io.IOException
- An I/O error occurs or the input encoding is incorrect.public java.io.InputStream getInputStream()
getInputStream
in interface CMSInputConnector
|
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 |