Package passwordmanager.encoded
Class DefaultRawData
java.lang.Object
passwordmanager.encoded.DefaultRawData
- All Implemented Interfaces:
Serializable,Cloneable,IRawData,IRecoverable
Data structure with encrypted records implementation without checks
- Since:
- 2023-12-14
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor initializing the list of encrypted records and the name of the structure -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod for checking the correctness of the structure with encrypted recordsclone()Method for cloning a structure object with encrypted recordsprivate voidMethod generating default path for saving and restoring structuregetData()Method for getting a list of encrypted records from a structuregetName()Method for getting the name of an encrypted data structureMethod for obtaining the path along which the structure will be savedvoidload()Method for restoring structurevoidsave()Method for saving structurevoidMethod for changing the list of encrypted entries in a structurevoidMethod for setting the name of an encrypted data structurevoidsetPathToSaveFile(String pathToSaveFile) Method for changing the path where the structure will be saved
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDClass version number for checks when desirializing and serializing class objects- See Also:
-
data
List of encrypted records -
name
Name of an encrypted data structure -
pathToSaveFile
The path along which the structure will be saved
-
-
Constructor Details
-
DefaultRawData
public DefaultRawData()Constructor initializing the list of encrypted records and the name of the structure
-
-
Method Details
-
getData
Method for getting a list of encrypted records from a structure -
setData
Method for changing the list of encrypted entries in a structure -
checkData
public boolean checkData()Method for checking the correctness of the structure with encrypted records -
getName
Method for getting the name of an encrypted data structure -
setName
Method for setting the name of an encrypted data structure -
save
public void save()Method for saving structure- Specified by:
savein interfaceIRecoverable
-
load
public void load()Method for restoring structure- Specified by:
loadin interfaceIRecoverable
-
clone
Method for cloning a structure object with encrypted records -
getPathToSaveFile
Method for obtaining the path along which the structure will be saved- Returns:
- path to the saving file
-
setPathToSaveFile
Method for changing the path where the structure will be saved- Parameters:
pathToSaveFile- the path along which the structure will be saved
-
generateSaveFilePath
private void generateSaveFilePath()Method generating default path for saving and restoring structure
-