gnu.crypto.keyring
public abstract class Entry extends Object
Version: $Revision: 1.7 $
| Field Summary | |
|---|---|
| protected byte[] | payload This entry's payload. |
| protected Properties | properties This entry's property set. |
| protected int | type This entry's type identifier. |
| Constructor Summary | |
|---|---|
| protected | Entry(int type, Properties properties)
Creates a new Entry.
|
| protected | Entry(int type)
Constructor for use by subclasses. |
| Method Summary | |
|---|---|
| protected void | defaultDecode(DataInputStream in)
Generic decoding method, which simply decodes the properties field
and reads the payload field.
|
| void | encode(DataOutputStream out)
This method is called when this entry needs to be written to an
output stream.
|
| protected abstract void | encodePayload()
This method is called of subclasses when the payload data needs to be
created.
|
| byte[] | getPayload()
Returns this entry's payload data, or null if |
| Properties | getProperties()
Returns this entry's properties object. |
Parameters: type This entry's type. properties This entry's properties.
Throws: IllegalArgumentException If the properties argument is null, or if the type is out of range.
Parameters: in The input data stream.
Throws: IOException If an I/O error occurs.
Parameters: out The stream to write to.
Throws: IOException If an I/O exception occurs.
Throws: IOException If an encoding error occurs.
Returns: The properties.