public class CMSEncryptedDataInputConnector extends java.lang.Object implements CMSInputConnector
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 and Description |
|---|
CMSEncryptedDataInputConnector(CMSInputConnector conn,
javax.crypto.SecretKey contentEncryptionKey)
Creates a
CMSEncryptedDataInputConnector. |
CMSEncryptedDataInputConnector(java.io.InputStream in,
javax.crypto.SecretKey contentEncryptionKey)
Creates a
CMSEncryptedDataInputConnector. |
| Modifier and Type | Method and Description |
|---|---|
ASN1ObjectID |
getEnclosedContentType()
Returns the content type of the encrypted content.
|
java.io.InputStream |
getInputStream()
Returns the underlying input stream governing this connector.
|
public CMSEncryptedDataInputConnector(java.io.InputStream in,
javax.crypto.SecretKey contentEncryptionKey)
CMSEncryptedDataInputConnector.
Note the changes in the Method signature
Previouslypublic CMSEncryptedDataInputConnector (InputStream ,SymmetricKey )
Nowpublic CMSEncryptedDataInputConnector (InputStream , SecretKey )
in - The underlying input stream.contentEncryptionKey - The content decryption key.public CMSEncryptedDataInputConnector(CMSInputConnector conn, javax.crypto.SecretKey contentEncryptionKey)
CMSEncryptedDataInputConnector.
Note the changes in the Method signature
Previouslypublic CMSEncryptedDataInputConnector (CMSInputConnector ,SymmetricKey )
Nowpublic CMSEncryptedDataInputConnector (CMSInputConnector , SecretKey)
conn - The underlying input connector.contentEncryptionKey - The content decryption key.public ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
getEnclosedContentType in interface CMSInputConnectorjava.io.IOException - An I/O error occurs or the input encoding is incorrect.public java.io.InputStream getInputStream()
getInputStream in interface CMSInputConnector