|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object extended bygnu.crypto.keyring.Entry extended bygnu.crypto.keyring.PrimitiveEntry extended bygnu.crypto.keyring.BinaryDataEntry
A binary data entry is a primitive entry that simply contains some amount of arbitrary binary data and an optional content type. $Revision: 1.2 $
| Field Summary | |
static int |
TYPE
|
| Fields inherited from class gnu.crypto.keyring.PrimitiveEntry |
creationDate |
| Fields inherited from class gnu.crypto.keyring.Entry |
payload, properties, type |
| Constructor Summary | |
BinaryDataEntry(java.lang.String contentType,
byte[] data,
java.util.Date creationDate,
Properties properties)
Creates a new binary data entry. |
|
| Method Summary | |
static BinaryDataEntry |
decode(java.io.DataInputStream in)
|
protected void |
encodePayload()
This method is called of subclasses when the payload data needs to be created. |
java.lang.String |
getContentType()
Returns the content type of this entry, or null if this
property is not set. |
byte[] |
getData()
Returns this object's data field. |
| Methods inherited from class gnu.crypto.keyring.PrimitiveEntry |
equals, getAlias, getCreationDate, makeCreationDate |
| Methods inherited from class gnu.crypto.keyring.Entry |
defaultDecode, encode, getPayload, getProperties |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int TYPE
| Constructor Detail |
public BinaryDataEntry(java.lang.String contentType, byte[] data, java.util.Date creationDate, Properties properties)
contentType - The content type of this entry. This parameter can
be null if no content type is needed.data - The data.creationDate - The creation date.properties - This entry's properties.| Method Detail |
public static BinaryDataEntry decode(java.io.DataInputStream in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getContentType()
null if this
property is not set.
public byte[] getData()
protected void encodePayload()
Entry
encodePayload in class Entry
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||