|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.pkcs7.ContentInfo | +--com.rsa.certj.pkcs7.Data
This class encodes and decodes the PKCS #7 Data
type.
Data ::= OCTET STRINGCopyright © RSA Security Inc., 1999-2001. All rights reserved.
See Also
Fields inherited from class com.rsa.certj.pkcs7.ContentInfo |
DATA, DIGESTED_DATA, ENCRYPTED_DATA, ENVELOPED_DATA, NO_CONTENT, PKCS7_VERSION_NUMBER_0, PKCS7_VERSION_NUMBER_1, SIGNED_DATA |
Constructor Summary |
|
Data()
Creates a new object to encode or decode PKCS #7 |
Method Summary |
|
void |
clearSensitiveData()
Clears any sensitive data. |
clone()
Overrides the default |
|
boolean |
equals(Object obj)
Returns true if this object and obj contain the same
|
byte[] |
getData()
Gets the content in this |
int |
getUnprocessedDataLen()
Returns the number of bytes in the internal buffer that contains the unprocessed data. |
void |
setContent(byte[] octetString,
int offset,
int len)
Sets the content in this |
Methods inherited from class com.rsa.certj.pkcs7.ContentInfo |
bytesRead, clearInternalContentBuffer, endOfMessage, getContent, getContentInfoDERLen, getContentInfoDERLen, getContentType, getDevice, getDeviceList, getInstance, getInstance, getMessageType, getMessageType, readFinal, readInit, readInit, readInit, readUpdate, setCertJ, setCertPath, setDevice, writeMessage, writeMessage |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Data()
Data
.Method Detail |
public void setContent(byte[] octetString, int offset, int len) throws PKCS7Exception
Data
object.Parameters
octetString | A | ||
offset | The offset into the | ||
len | The length of this |
Throws
PKCS7Exception
- If octetString is null
.public byte[] getData()
Data
object.
Returns
byte
array that contains arbitrary data.public int getUnprocessedDataLen()
Overrides
getUnprocessedDataLen
in class ContentInfo
Returns
public boolean equals(Object obj)
Data
; returns false otherwise.Overrides
equals
in class Object
Parameters
obj | An instance of the
|
Returns
boolean
indicating whether
these objects are equal.public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone..
Overrides
clone
in class ContentInfo
Returns
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.public void clearSensitiveData()
finalizer
will clear
the data, but it is not known when the garbage collector will call the
finalizer
. This method clears all sensitive data as soon
as possible.
Overrides
clearSensitiveData
in class ContentInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |