|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cms.CMSContentInfo
oracle.security.crypto.cms.CMSDataContentInfo
public class CMSDataContentInfo
This class encapsulates a CMS object of content type Data
.
There is no enclosed CMS object. The actual bytes of data can be retrieved with the getData()
method.
The data content type is intended to refer to arbitrary octet strings, the interpration of which is left to the application. The data content type (CMSDataContentInfo
) is generally encapsulated in a signed-data (CMSSignedDataContentInfo
), enveloped-data (CMSEnvelopedDataContentInfo
), digested-data (CMSDigestedDataContentInfo
), encrypted-data (CMSEncryptedDataContentInfo
) or authenticated-data (CMSAuthenticatedDataContentInfo
) CMS object.
Constructor Summary | |
---|---|
CMSDataContentInfo() Creates an empty CMSDataContentInfo . |
|
CMSDataContentInfo(byte[] documentBytes) Creates a CMSDataContentInfo . |
|
CMSDataContentInfo(java.io.InputStream is) Creates a CMSDataContentInfo object by reading a BER encoding from the specified input stream. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj) Indicates whether some other object is "equal to" this one. |
byte[] |
getData() Returns the content. |
protected byte[] |
getExposedContent() Returns the contents octets of the DER encoding of the content field of this CMS object. |
int |
hashCode() Returns a hash code value for this object. |
protected void |
inputContent(java.io.InputStream is) Initializes this object by reading the Content field of the CMS ContentInfo structure i.e. |
boolean |
isDetached() Indicates if this object is detached. |
protected void |
setExposedContent(byte[] expContent) Returns the contents octets of the DER encoding of the content field of this CMS object. |
java.lang.String |
toString() Returns a brief text description of this object. |
protected void |
update() Clears the internal output cache. |
Methods inherited from class oracle.security.crypto.cms.CMSContentInfo |
---|
computeDigest, contentTypeName, getContentType, input, inputInstance, isDegenerate, length, output |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CMSDataContentInfo()
CMSDataContentInfo
.public CMSDataContentInfo(byte[] documentBytes)
CMSDataContentInfo
.
documentBytes
- The contents.public CMSDataContentInfo(java.io.InputStream is) throws java.io.IOException
CMSDataContentInfo
object by reading a BER encoding from the specified input stream.
An exception will be thrown if an encoding for a empty CMS object is encountered. Therefore the result of this constructor, if it returns successfully, is guaranteed to be non empty.
is
- The input stream.java.io.IOException
- If the input is not correctly formatted, has the wrong content type, or the content is missing; or an I/O exception occurs while reading from the input stream.Method Detail |
---|
protected void setExposedContent(byte[] expContent)
CMSContentInfo
setExposedContent
in class CMSContentInfo
CMSContentInfo.isDetached()
protected byte[] getExposedContent()
CMSContentInfo
getExposedContent
in class CMSContentInfo
null
for a detached CMS object.CMSContentInfo.isDetached()
public boolean isDetached()
isDetached
in class CMSContentInfo
true
if no content is present; false
otherwise.CMSContentInfo.isDetached()
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getData()
null
if the object is detached.protected void inputContent(java.io.InputStream is) throws java.io.IOException
CMSContentInfo
This method must be implemented by subclasses. It is unlikely that package users will ever need to call it directly.
inputContent
in class CMSContentInfo
java.io.IOException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
true
if this object is the same as the obj argument; false
otherwise.protected void update()
update
in class CMSContentInfo
|
Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10667-03 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |