Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.keyring
Class EnvelopeEntry  view EnvelopeEntry download EnvelopeEntry.java

java.lang.Object
  extended bygnu.javax.crypto.keyring.Entry
      extended bygnu.javax.crypto.keyring.EnvelopeEntry
Direct Known Subclasses:
CompressedEntry, MaskableEnvelopeEntry

public abstract class EnvelopeEntry
extends Entry

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.javax.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(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.
private  void makeAliasList()
           
 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.javax.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

containingEnvelope

protected EnvelopeEntry containingEnvelope
The envelope that contains this one (if any).


entries

protected java.util.List entries
The contained entries.

Constructor Detail

EnvelopeEntry

public EnvelopeEntry(int type,
                     Properties properties)

EnvelopeEntry

protected EnvelopeEntry(int type)
Method Detail

add

public void add(Entry entry)
Adds an entry to this envelope.


containsAlias

public boolean containsAlias(java.lang.String alias)
Tests if this envelope contains a primitive entry with the given alias.


containsEntry

public boolean containsEntry(Entry entry)
Tests if this envelope contains the given entry.


getEntries

public java.util.List getEntries()
Returns a copy of all entries this envelope contains.


get

public java.util.List get(java.lang.String alias)
Gets all primitive entries that have the given alias. If there are any masked entries that contain the given alias, they will be returned as well.


getAliasList

public java.lang.String getAliasList()
Returns the list of all aliases contained by this envelope, separated by a semicolon (';').


remove

public boolean remove(Entry entry)
Removes the specified entry.


remove

public void remove(java.lang.String alias)
Removes all primitive entries that have the specified alias.


encodePayload

protected void encodePayload()
                      throws java.io.IOException
Description copied from class: Entry
This method is called of subclasses when the payload data needs to be created.

Specified by:
encodePayload in class Entry

setContainingEnvelope

protected void setContainingEnvelope(EnvelopeEntry e)

decodeEnvelope

protected void decodeEnvelope(java.io.DataInputStream in)
                       throws java.io.IOException

makeAliasList

private void makeAliasList()