gnu.crypto.keyring
Class Entry
public abstract class Entry
An immutable class representing a single entry in a keyring.
Entry(int type) - Constructor for use by subclasses.
|
Entry(int type, Properties properties) - Creates a new Entry.
|
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.
|
payload
protected byte[] payload
This entry's payload.
properties
protected Properties properties
This entry's property set.
type
protected int type
This entry's type identifier.
Entry
protected Entry(int type)
Constructor for use by subclasses.
Entry
protected Entry(int type,
Properties properties)
Creates a new Entry.
type
- This entry's type.properties
- This entry's properties.
defaultDecode
protected void defaultDecode(DataInputStream in)
throws IOException
Generic decoding method, which simply decodes the properties field
and reads the payload field.
in
- The input data stream.
encode
public void encode(DataOutputStream out)
throws IOException
This method is called when this entry needs to be written to an
output stream.
out
- The stream to write to.
encodePayload
protected abstract void encodePayload()
throws IOException
This method is called of subclasses when the payload data needs to be
created.
getPayload
public byte[] getPayload()
Returns this entry's payload data, or null if
getProperties
public Properties getProperties()
Returns this entry's properties object. The properties are cloned before
being returned.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.