public abstract class ProtectedDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon> extends AbstractDatabase<D,G,E,I>
PropertyValues.
By default Entry.STANDARD_PROPERTY_NAME_PASSWORD is defined as protected and the property value strategy
establishes PropertyValue.StringStore storage for unprotected values and
PropertyValue.SealedStore for protected values.
| Constructor and Description |
|---|
ProtectedDatabase() |
| Modifier and Type | Method and Description |
|---|---|
PropertyValue.Strategy |
getPropertyValueStrategy()
Get the default means of storage of unprotected and protected property values
|
List<String> |
listShouldProtect()
Obtain a list of those properties that should be protected by default
|
void |
setPropertyValueStrategy(PropertyValue.Strategy strategy)
Set the default means of storage of unprotected and protected property values
|
void |
setShouldProtect(String propertyName,
boolean protect)
Property to protect in memory
|
boolean |
shouldProtect(String propertyName)
Property to protect in memory
|
boolean |
supportsPropertyValueStrategy()
returns true if the implementation supports a PropertyValueStrategy
|
deleteEntry, deleteGroup, emptyRecycleBin, findEntries, findEntries, findEntry, findGroup, isDirty, newEntry, newEntry, newGroup, newGroup, setDirty, supportsBinaryProperties, supportsNonStandardPropertyNames, supportsRecycleBin, visit, visitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableRecycleBin, getDescription, getName, getRecycleBin, getRootGroup, getStreamFormat, isRecycleBinEnabled, newEntry, newGroup, newIcon, newIcon, save, save, setDescription, setNamepublic boolean shouldProtect(String propertyName)
DatabaseshouldProtect in interface Database<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>shouldProtect in class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>propertyName - the property of interestpublic void setShouldProtect(String propertyName, boolean protect)
DatabasesetShouldProtect in interface Database<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>setShouldProtect in class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>propertyName - the property of interestprotect - whether to protect by defaultpublic List<String> listShouldProtect()
DatabaselistShouldProtect in interface Database<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>listShouldProtect in class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>public PropertyValue.Strategy getPropertyValueStrategy()
getPropertyValueStrategy in interface Database<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>getPropertyValueStrategy in class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>public void setPropertyValueStrategy(PropertyValue.Strategy strategy)
setPropertyValueStrategy in interface Database<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>setPropertyValueStrategy in class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>strategy - a property value strategypublic boolean supportsPropertyValueStrategy()
DatabasesupportsPropertyValueStrategy in interface Database<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>supportsPropertyValueStrategy in class AbstractDatabase<D extends Database<D,G,E,I>,G extends Group<D,G,E,I>,E extends Entry<D,G,E,I>,I extends Icon>Copyright © 2025. All rights reserved.