Class MasterPasswordFileManager

  • Direct Known Subclasses:
    DomainSecurity, RepositoryManager

    public class MasterPasswordFileManager
    extends KeystoreManager
    The RepositoryManager serves as a common base class for the following PEDomainsManager, PEInstancesManager, AgentManager (the SE Node Agent). Its purpose is to abstract out any shared functionality related to lifecycle management of domains, instances and node agents. This includes creation, deletion, listing, and starting and stopping.
    Since:
    August 19, 2003, 2:29 PM
    Author:
    kebbs
    • Constructor Detail

      • MasterPasswordFileManager

        public MasterPasswordFileManager()
        Creates a new instance of RepositoryManager
    • Method Detail

      • deleteMasterPasswordFile

        protected void deleteMasterPasswordFile​(RepositoryConfig config)
      • createMasterPasswordFile

        protected void createMasterPasswordFile​(RepositoryConfig config,
                                                String masterPassword)
                                         throws RepositoryException
        Create the master password keystore. This routine can also modify the master password if the keystore already exists
        Parameters:
        config -
        masterPassword -
        Throws:
        RepositoryException
      • changeMasterPasswordInMasterPasswordFile

        protected void changeMasterPasswordInMasterPasswordFile​(RepositoryConfig config,
                                                                String newPassword,
                                                                boolean saveMasterPassword)
                                                         throws RepositoryException
        Changes the master password in the master password file
        Parameters:
        saveMasterPassword -
        config -
        newPassword -
        Throws:
        RepositoryException
      • changeMasterPasswordInMasterPasswordFile

        public void changeMasterPasswordInMasterPasswordFile​(File pwdFile,
                                                             String newPassword,
                                                             boolean saveMasterPassword)
                                                      throws RepositoryException
        Changes the master password in the master password file
        Parameters:
        pwdFile - the master password file
        newPassword - the new password
        saveMasterPassword - whether to save the new password. If this is false then the old file will simply be deleted
        Throws:
        RepositoryException