|
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 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 java.util.List |
entries
The contained entries. |
Fields inherited from class gnu.crypto.keyring.Entry |
payload, properties, type |
Constructor Summary | |
protected |
EnvelopeEntry()
|
|
EnvelopeEntry(int type,
Properties properties)
|
Method Summary | |
void |
add(Entry entry)
Adds an entry to this envelope. |
boolean |
containsAlias(java.lang.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(java.io.DataInputStream in)
|
protected void |
encodePayload()
This method is called of subclasses when the payload data needs to be created. |
java.util.List |
get(java.lang.String alias)
Gets all primitive entries that have the given alias. |
java.lang.String |
getAliasList()
Returns the list of all aliases contained by this envelope, separated by a semicolon (';'). |
java.util.List |
getEntries()
Returns a copy of all entries this envelope contains. |
boolean |
remove(Entry entry)
Removes the specified entry. |
void |
remove(java.lang.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 java.util.List entries
Constructor Detail |
public EnvelopeEntry(int type, Properties properties)
protected EnvelopeEntry()
Method Detail |
public void add(Entry entry)
entry
- The entry to add.public boolean containsAlias(java.lang.String alias)
alias
- The alias to test.
public boolean containsEntry(Entry entry)
entry
- The entry to test.
public java.util.List getEntries()
public java.util.List get(java.lang.String alias)
alias
- The alias of the entries to get.
public java.lang.String getAliasList()
public boolean remove(Entry entry)
entry
- The entry.
public void remove(java.lang.String alias)
alias
- The alias of the entries to remove.protected void encodePayload() throws java.io.IOException
Entry
encodePayload
in class Entry
java.io.IOException
- If an encoding error occurs.protected void setContainingEnvelope(EnvelopeEntry e)
protected void decodeEnvelope(java.io.DataInputStream in) throws java.io.IOException
java.io.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 |