|
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.CMSEnvelopedDataInputConnector
A CMSEnvelopedDataInputConnector is used in place of a CMSEnvelopedDataInputStream when reading nested CMS objects containing enveloped-data structures.
A CMSEnvelopedDataInputConnector is essentially a input stream filter that unwraps the CMS enveloped-data structure from the data read in. A CMSEnvelopedDataInputConnector 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, CMSEnvelopedDataInputStream| Constructor Summary | |
CMSEnvelopedDataInputConnector(CMSInputConnector conn, PrivateKey recipientPrivateKey, oracle.security.crypto.cert.X509 recipientCert)Creates a CMSEnvelopedDataInputConnector. |
|
CMSEnvelopedDataInputConnector(java.io.InputStream in, PrivateKey recipientPrivateKey, oracle.security.crypto.cert.X509 recipientCert)Creates a CMSEnvelopedDataInputConnector. |
|
| Method Summary | |
ASN1ObjectID |
getEnclosedContentType()Returns the content type of the encrypted content. |
java.io.InputStream |
getInputStream()Returns the input stream governing this input connector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMSEnvelopedDataInputConnector(java.io.InputStream in,
PrivateKey recipientPrivateKey,
oracle.security.crypto.cert.X509 recipientCert)
CMSEnvelopedDataInputConnector.in - The underlying input stream.recipientPrivateKey - The private key of the recipient.recipientCert - The recipient's certificate.
public CMSEnvelopedDataInputConnector(CMSInputConnector conn,
PrivateKey recipientPrivateKey,
oracle.security.crypto.cert.X509 recipientCert)
CMSEnvelopedDataInputConnector.conn - The underlying input connector.recipientPrivateKey - The private key of the recipient.recipientCert - The recipient's certificate.| Method Detail |
public ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
getEnclosedContentType in interface CMSInputConnectorjava.io.IOException - If the encoding is incorrect or an I/O error occurs.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 | ||||||||