|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gnu.crypto.keyring.Entry
An immutable class representing a single entry in a keyring.
| 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()
Default constructor for use by subclasses. |
protected |
Entry(int type,
Properties properties)
Creates a new Entry. |
| Method Summary | |
|---|---|
protected void |
defaultDecode(java.io.DataInputStream in)
Generic decoding method, which simply decodes the properties field and reads the payload field. |
void |
encode(java.io.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int type
protected Properties properties
protected byte[] payload
| Constructor Detail |
protected Entry(int type,
Properties properties)
type - This entry's type.properties - This entry's properties.
java.lang.IllegalArgumentException - If the properties argument is null,
or if the type is out of range.protected Entry()
| Method Detail |
public Properties getProperties()
public byte[] getPayload()
public void encode(java.io.DataOutputStream out)
throws java.io.IOException
out - The stream to write to.
java.io.IOException - If an I/O exception occurs.
protected void defaultDecode(java.io.DataInputStream in)
throws java.io.IOException
in - The input data stream.
java.io.IOException - If an I/O error occurs.
protected abstract void encodePayload()
throws java.io.IOException
java.io.IOException - If an encoding error occurs.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||