gnu.crypto.keyring

Class MaskableEnvelopeEntry

Known Direct 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.crypto.keyring.EnvelopeEntry

containingEnvelope, entries

Fields inherited from class gnu.crypto.keyring.Entry

payload, properties, type

Constructor Summary

MaskableEnvelopeEntry(int type)
MaskableEnvelopeEntry(int type, Properties properties)

Method Summary

void
add(Entry entry)
boolean
containsEntry(Entry entry)
List
get(String alias)
List
getEntries()
boolean
isMasked()
Gets the masked state of this object.
void
remove(String alias)
boolean
remove(Entry entry)
protected void
setMasked(boolean masked)
Sets the masked state to the specified value.

Methods inherited from class gnu.crypto.keyring.EnvelopeEntry

add, containsAlias, containsEntry, decodeEnvelope, encodePayload, get, getAliasList, getEntries, remove, remove, setContainingEnvelope

Methods inherited from class gnu.crypto.keyring.Entry

defaultDecode, encode, encodePayload, getPayload, getProperties

Field Details

masked

protected boolean masked
The masked state.

Constructor Details

MaskableEnvelopeEntry

protected MaskableEnvelopeEntry(int type)

MaskableEnvelopeEntry

public MaskableEnvelopeEntry(int type,
                             Properties properties)

Method Details

add

public void add(Entry entry)
Overrides:
add in interface EnvelopeEntry

containsEntry

public boolean containsEntry(Entry entry)
Overrides:
containsEntry in interface EnvelopeEntry

get

public List get(String alias)
Overrides:
get in interface EnvelopeEntry

getEntries

public List getEntries()
Overrides:
getEntries in interface EnvelopeEntry

isMasked

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

remove

public void remove(String alias)
Overrides:
remove in interface EnvelopeEntry

remove

public boolean remove(Entry entry)
Overrides:
remove in interface EnvelopeEntry

setMasked

protected final void setMasked(boolean masked)
Sets the masked state to the specified value.
Parameters:
masked - The new masked state.

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.