|
Oracle Security Developer Tools CMS Java API Reference 10g (10.1.4.0.1) B28170-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
oracle.security.crypto.cms.CMSInputStream
oracle.security.crypto.cms.CMSEnvelopedDataInputStream
A CMSEnvelopedDataInputStream is used to read enveloped-data CMS objects.
A CMSEnvelopedDataInputStream is essentially a input stream filter that unwraps the CMS enveloped-data structure from the data read in.
IMPORTANT: This class processes large CMS enveloped-data Objects more efficiently (Java VM memory usage) than the CMSEnvelopedDataContentInfo class.
CMSInputConnector, CMSEnvelopedDataInputConnector, CMSEnvelopedDataContentInfo| Field Summary |
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
CMSEnvelopedDataInputStream(CMSInputConnector conn, oracle.security.crypto.core.PrivateKey recipientPrivateKey, oracle.security.crypto.cert.X509 recipientCert)Creates a CMSEnvelopedDataInputStream. |
|
CMSEnvelopedDataInputStream(CMSInputConnector conn, oracle.security.crypto.core.SymmetricKey keyEncryptionKey)Creates a CMSEnvelopedDataInputStream. |
|
CMSEnvelopedDataInputStream(java.io.InputStream in, oracle.security.crypto.core.PrivateKey recipientPrivateKey, oracle.security.crypto.cert.X509 recipientCert)Creates a CMSEnvelopedDataInputStream. |
|
CMSEnvelopedDataInputStream(java.io.InputStream in, oracle.security.crypto.core.SymmetricKey keyEncryptionKey)Creates a CMSEnvelopedDataInputStream. |
|
| Method Summary | |
int |
available() |
oracle.security.crypto.core.AlgorithmIdentifier |
getContentEncryptionAlgID()Returns the content encryption algorithm. |
oracle.security.crypto.asn1.ASN1ObjectID |
getEnclosedContentType()Returns the content type of the encrypted content. |
OriginatorInfo |
getOrginatorInfo()Returns the OriginatorInfo. |
oracle.security.crypto.cert.AttributeSet |
getUnprotectedAttribs()Returns the unprotected attributes. |
oracle.security.crypto.asn1.ASN1Integer |
getVersion()Deprecated. As of Phaos CMS 2.0.1, replaced by getVersionNumber() |
java.math.BigInteger |
getVersionNumber()Returns the version number of this CMS Object. |
void |
mark(int readlimit)Not supported. |
boolean |
markSupported()Always returns false</false>. |
int |
read() |
int |
read(byte[] buffer, int offset, int len) |
void |
reset()Not supported. |
long |
skip(long n) |
void |
terminate()Finish reading the enveloped-data structure. |
| Methods inherited from class java.io.FilterInputStream |
close, read |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CMSEnvelopedDataInputStream(java.io.InputStream in,
oracle.security.crypto.core.PrivateKey recipientPrivateKey,
oracle.security.crypto.cert.X509 recipientCert)
CMSEnvelopedDataInputStream.in - The underlying input stream.recipientPrivateKey - The private key of the recipient.recipientCert - The recipient's certificate.
public CMSEnvelopedDataInputStream(CMSInputConnector conn,
oracle.security.crypto.core.PrivateKey recipientPrivateKey,
oracle.security.crypto.cert.X509 recipientCert)
CMSEnvelopedDataInputStream.conn - The underlying input connector.recipientPrivateKey - The private key of the recipient.recipientCert - The recipient's certificate.
public CMSEnvelopedDataInputStream(java.io.InputStream in,
oracle.security.crypto.core.SymmetricKey keyEncryptionKey)
CMSEnvelopedDataInputStream.in - The underlying input stream.keyEncryptionKey - The key used for key encipherment.
public CMSEnvelopedDataInputStream(CMSInputConnector conn,
oracle.security.crypto.core.SymmetricKey keyEncryptionKey)
CMSEnvelopedDataInputStream.keyEncryptionKey - The key used for key encipherment.| Method Detail |
public void terminate()
throws java.io.IOException
enveloped-data structure.
This method must be called only after all the enclosed data has been read.
terminate in class CMSInputStreamjava.io.IOException - If the encoding is incorrect or an I/O error occurs.
public int read()
throws java.io.IOException
java.io.IOException
public int read(byte[] buffer,
int offset,
int len)
throws java.io.IOException
java.io.IOException
public int available()
throws java.io.IOException
java.io.IOException
public long skip(long n)
throws java.io.IOException
java.io.IOExceptionpublic boolean markSupported()
false</false>.Returns:falsepublic void mark(int readlimit)
public void reset()
throws java.io.IOException
java.io.IOException - always
public java.math.BigInteger getVersionNumber()
throws java.io.IOException
java.io.IOException - An I/O error occurred or the input is incorrectly encoded.
public oracle.security.crypto.asn1.ASN1Integer getVersion()
throws java.io.IOException
getVersionNumber()java.io.IOException - If the encoding is incorrect or an I/O error occurs.
public OriginatorInfo getOrginatorInfo()
throws java.io.IOException
java.io.IOException - If the encoding is incorrect or an I/O error occurs.
public oracle.security.crypto.cert.AttributeSet getUnprotectedAttribs()
throws java.io.IOException
java.io.IOException - If the encoding is incorrect or an I/O error occurs.
public oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
throws java.io.IOException
getEnclosedContentType in class CMSInputStreamjava.io.IOException - If the encoding is incorrect or an I/O error occurs.
public oracle.security.crypto.core.AlgorithmIdentifier getContentEncryptionAlgID()
throws java.io.IOException
java.io.IOException - If the encoding is incorrect or an I/O error occurs.
|
Oracle Security Developer Tools CMS Java API Reference 10g (10.1.4.0.1) B28170-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||