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

Quick Search    Search Deep

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

java.lang.Object
  extended bygnu.javax.crypto.keyring.Entry
      extended bygnu.javax.crypto.keyring.EnvelopeEntry
          extended bygnu.javax.crypto.keyring.MaskableEnvelopeEntry
Direct Known Subclasses:
AuthenticatedEntry, EncryptedEntry, PasswordAuthenticatedEntry, PasswordEncryptedEntry

public abstract class MaskableEnvelopeEntry
extends EnvelopeEntry

An envelope entry that can be "masked" -- placed in a state where the envelope's contents cannot be accessed, due to the envelope not being fully decoded, for example.


Field Summary
protected  boolean masked
          The masked state.
 
Fields inherited from class gnu.javax.crypto.keyring.EnvelopeEntry
containingEnvelope, entries
 
Fields inherited from class gnu.javax.crypto.keyring.Entry
payload, properties, type
 
Constructor Summary
protected MaskableEnvelopeEntry(int type)
           
  MaskableEnvelopeEntry(int type, Properties properties)
           
 
Method Summary
 void add(Entry entry)
          Adds an entry to this envelope.
 boolean containsEntry(Entry entry)
          Tests if this envelope contains the given entry.
 java.util.List get(java.lang.String alias)
          Gets all primitive entries that have the given alias.
 java.util.List getEntries()
          Returns a copy of all entries this envelope contains.
 boolean isMasked()
          Gets the masked state of this object.
 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 setMasked(boolean masked)
          Sets the masked state to the specified value.
 
Methods inherited from class gnu.javax.crypto.keyring.EnvelopeEntry
containsAlias, decodeEnvelope, encodePayload, getAliasList, setContainingEnvelope
 
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

masked

protected boolean masked
The masked state.

Constructor Detail

MaskableEnvelopeEntry

public MaskableEnvelopeEntry(int type,
                             Properties properties)

MaskableEnvelopeEntry

protected MaskableEnvelopeEntry(int type)
Method Detail

setMasked

protected final void setMasked(boolean masked)
Sets the masked state to the specified value.


isMasked

public boolean isMasked()
Gets the masked state of this object. Certain operations on this object will fail if it is masked.


add

public void add(Entry entry)
Description copied from class: EnvelopeEntry
Adds an entry to this envelope.

Overrides:
add in class EnvelopeEntry

containsEntry

public boolean containsEntry(Entry entry)
Description copied from class: EnvelopeEntry
Tests if this envelope contains the given entry.

Overrides:
containsEntry in class EnvelopeEntry

getEntries

public java.util.List getEntries()
Description copied from class: EnvelopeEntry
Returns a copy of all entries this envelope contains.

Overrides:
getEntries in class EnvelopeEntry

get

public java.util.List get(java.lang.String alias)
Description copied from class: EnvelopeEntry
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.

Overrides:
get in class EnvelopeEntry

remove

public boolean remove(Entry entry)
Description copied from class: EnvelopeEntry
Removes the specified entry.

Overrides:
remove in class EnvelopeEntry

remove

public void remove(java.lang.String alias)
Description copied from class: EnvelopeEntry
Removes all primitive entries that have the specified alias.

Overrides:
remove in class EnvelopeEntry