Class UIHelper

java.lang.Object
passwordmanagergui.UIHelper

public class UIHelper extends Object
Tools to help you prepare and access your password manager
Since:
2024-01-31
  • Field Details

    • saveFileSuffix

      private static final String saveFileSuffix
      Extension of files storing groups of passwords
      See Also:
    • groups

      private static List<String> groups
      List of password group names
    • groupFiles

      private static List<File> groupFiles
      List of files containing encrypted group accounts
  • Constructor Details

    • UIHelper

      public UIHelper()
  • Method Details

    • addGroup

      public static void addGroup(File groupFile)
      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

      public static void removeGroup(String groupName)
      Method for deleting a password group by its name
      Parameters:
      groupName - name of the group to be deleted
    • getGroups

      public static List<String> getGroups()
      Method to get a list of group names
      Returns:
      list of group names
    • getGroupFiles

      public static List<File> getGroupFiles()
      Method to get a list of group files
      Returns:
      list of group files
    • getSuffix

      public static String 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

      public static File getGroupFileByName(String groupName)
      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

      public static String getGroupNameByFile(File groupFile)
      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