Package de.mhus.lib.core.vault
Class DefaultEntry
- java.lang.Object
-
- de.mhus.lib.core.vault.DefaultEntry
-
- All Implemented Interfaces:
VaultEntry
- Direct Known Subclasses:
PemEntry
public class DefaultEntry extends Object implements VaultEntry
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected UUIDidprotected Stringtypeprotected SecureStringvalue
-
Constructor Summary
Constructors Constructor Description DefaultEntry()DefaultEntry(String type, String description, SecureString value)DefaultEntry(String type, String description, String value)DefaultEntry(UUID id, String type, String description, SecureString value)DefaultEntry(UUID id, String type, String description, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Return a readable description describe the key and/or the usage.UUIDgetId()Returns the unique id of the entry.StringgetType()Returns the type of the entry as string.SecureStringgetValue()Return the value of the entry as text.StringtoString()
-
-
-
Field Detail
-
id
protected UUID id
-
type
protected String type
-
description
protected String description
-
value
protected SecureString value
-
-
Constructor Detail
-
DefaultEntry
public DefaultEntry()
-
DefaultEntry
public DefaultEntry(UUID id, String type, String description, SecureString value)
-
DefaultEntry
public DefaultEntry(String type, String description, SecureString value)
-
-
Method Detail
-
getId
public UUID getId()
Description copied from interface:VaultEntryReturns the unique id of the entry.- Specified by:
getIdin interfaceVaultEntry- Returns:
- The unique id
-
getType
public String getType()
Description copied from interface:VaultEntryReturns the type of the entry as string. A list of default types is defined in MVault.- Specified by:
getTypein interfaceVaultEntry- Returns:
- The type of the entry, never null.
-
getValue
public SecureString getValue()
Description copied from interface:VaultEntryReturn the value of the entry as text.- Specified by:
getValuein interfaceVaultEntry- Returns:
- The entry as text.
-
getDescription
public String getDescription()
Description copied from interface:VaultEntryReturn a readable description describe the key and/or the usage.- Specified by:
getDescriptionin interfaceVaultEntry- Returns:
- description
-
-