Package passwordmanagergui
Class UIHelper
java.lang.Object
passwordmanagergui.UIHelper
Tools to help you prepare and access your password manager
- Since:
- 2024-01-31
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of files containing encrypted group accountsList of password group namesprivate static final StringExtension of files storing groups of passwords -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMethod that adds a group based on the transferred filestatic voidMethod for resetting information about groups with passwordsstatic FilegetGroupFileByName(String groupName) Method for obtaining a file with a password group by group nameMethod to get a list of group filesstatic StringgetGroupNameByFile(File groupFile) Method for obtaining the name of a group with passwords from a file with an encoded group of passwordsMethod to get a list of group namesstatic StringMethod for getting the extension of files storing groups of passwordsstatic voidMethod for obtaining files and group names from the directory for storing encoded groupsstatic voidremoveGroup(String groupName) Method for deleting a password group by its nameprivate static voidMethod for retrieving group files from the encoded group storage directory
-
Field Details
-
saveFileSuffix
Extension of files storing groups of passwords- See Also:
-
groups
List of password group names -
groupFiles
List of files containing encrypted group accounts
-
-
Constructor Details
-
UIHelper
public UIHelper()
-
-
Method Details
-
addGroup
Method that adds a group based on the transferred file- Parameters:
groupFile- file supposedly containing a group of passwords
-
clearData
public static void clearData()Method for resetting information about groups with passwords -
removeGroup
Method for deleting a password group by its name- Parameters:
groupName- name of the group to be deleted
-
getGroups
Method to get a list of group names- Returns:
- list of group names
-
getGroupFiles
Method to get a list of group files- Returns:
- list of group files
-
getSuffix
Method for getting the extension of files storing groups of passwords- Returns:
- extension of files storing groups of passwords
-
readGroupsFromPath
public static void readGroupsFromPath()Method for obtaining files and group names from the directory for storing encoded groups -
getGroupFileByName
Method for obtaining a file with a password group by group name- Parameters:
groupName- group name by which the file with the group will be found- Returns:
- file containing the found group of passwords
-
getGroupNameByFile
Method for obtaining the name of a group with passwords from a file with an encoded group of passwords- Parameters:
groupFile- file containing a group of passwords- Returns:
- group name
-
searchGroupsInPath
private static void searchGroupsInPath()Method for retrieving group files from the encoded group storage directory
-