|
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.Objectgnu.crypto.keyring.Entry
gnu.crypto.keyring.EnvelopeEntry
An envelope entry is a generic container for some number of primitive and other envelope entries.
Field Summary | |
---|---|
protected EnvelopeEntry |
containingEnvelope
The envelope that contains this one (if any). |
protected List |
entries
The contained entries. |
Fields inherited from class gnu.crypto.keyring.Entry |
---|
payload, properties, type |
Constructor Summary | |
---|---|
protected |
EnvelopeEntry(int type)
|
|
EnvelopeEntry(int type,
Properties properties)
|
Method Summary | |
---|---|
void |
add(Entry entry)
Adds an entry to this envelope. |
boolean |
containsAlias(String alias)
Tests if this envelope contains a primitive entry with the given alias. |
boolean |
containsEntry(Entry entry)
Tests if this envelope contains the given entry. |
protected void |
decodeEnvelope(DataInputStream in)
|
protected void |
encodePayload()
This method is called of subclasses when the payload data needs to be created. |
List |
get(String alias)
Gets all primitive entries that have the given alias. |
String |
getAliasList()
Returns the list of all aliases contained by this envelope, separated by a semicolon (';'). |
List |
getEntries()
Returns a copy of all entries this envelope contains. |
boolean |
remove(Entry entry)
Removes the specified entry. |
void |
remove(String alias)
Removes all primitive entries that have the specified alias. |
protected void |
setContainingEnvelope(EnvelopeEntry e)
|
Methods inherited from class gnu.crypto.keyring.Entry |
---|
defaultDecode, encode, getPayload, getProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EnvelopeEntry containingEnvelope
protected List entries
Constructor Detail |
public EnvelopeEntry(int type, Properties properties)
protected EnvelopeEntry(int type)
Method Detail |
public void add(Entry entry)
entry
- The entry to add.public boolean containsAlias(String alias)
alias
- The alias to test.
public boolean containsEntry(Entry entry)
entry
- The entry to test.
public List getEntries()
public List get(String alias)
alias
- The alias of the entries to get.
public String getAliasList()
public boolean remove(Entry entry)
entry
- The entry.
public void remove(String alias)
alias
- The alias of the entries to remove.protected void encodePayload() throws IOException
Entry
encodePayload
in class Entry
IOException
- If an encoding error occurs.protected void setContainingEnvelope(EnvelopeEntry e)
protected void decodeEnvelope(DataInputStream in) throws IOException
IOException
|
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 |