|
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
gnu.crypto.keyring.MaskableEnvelopeEntry
public abstract class MaskableEnvelopeEntry
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.crypto.keyring.EnvelopeEntry |
---|
containingEnvelope, entries |
Fields inherited from class gnu.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. |
List |
get(String alias)
Gets all primitive entries that have the given alias. |
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(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.crypto.keyring.EnvelopeEntry |
---|
containsAlias, decodeEnvelope, encodePayload, getAliasList, setContainingEnvelope |
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 boolean masked
Constructor Detail |
---|
public MaskableEnvelopeEntry(int type, Properties properties)
protected MaskableEnvelopeEntry(int type)
Method Detail |
---|
protected final void setMasked(boolean masked)
masked
- The new masked state.public boolean isMasked()
public void add(Entry entry)
EnvelopeEntry
add
in class EnvelopeEntry
entry
- The entry to add.public boolean containsEntry(Entry entry)
EnvelopeEntry
containsEntry
in class EnvelopeEntry
entry
- The entry to test.
public List getEntries()
EnvelopeEntry
getEntries
in class EnvelopeEntry
public List get(String alias)
EnvelopeEntry
get
in class EnvelopeEntry
alias
- The alias of the entries to get.
public boolean remove(Entry entry)
EnvelopeEntry
remove
in class EnvelopeEntry
entry
- The entry.
public void remove(String alias)
EnvelopeEntry
remove
in class EnvelopeEntry
alias
- The alias of the entries to remove.
|
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 |