Class MasterPasswordFileManager
java.lang.Object
com.sun.enterprise.admin.servermgmt.KeystoreManager
com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
- Direct Known Subclasses:
DomainSecurity,RepositoryManager
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.
- Author:
- kebbs
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
KeystoreManager.KeytoolExecutor -
Field Summary
Fields inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
_fileLayout, CERTIFICATE_ALIAS, DEFAULT_MASTER_PASSWORD, INSTANCE_SECURE_ADMIN_ALIAS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchangeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword) Changes the master password in the master password filevoidchangeMasterPasswordInMasterPasswordFile(File pwdFile, String newPassword, boolean saveMasterPassword) Changes the master password in the master password fileprotected voidcreateMasterPasswordFile(RepositoryConfig config, String masterPassword) Create the master password keystore.protected voidReturn the master password stored in the master password keystore.Methods inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
changeKeystorePassword, changeS1ASAliasPassword, changeSSLCertificateDatabasePassword, chmod, copyCertificatesToTrustStore, createKeyStore, getCertificateDN, getDASCertDN, getFileLayout, getInstanceCertDN
-
Constructor Details
-
MasterPasswordFileManager
public MasterPasswordFileManager()
-
-
Method Details
-
deleteMasterPasswordFile
-
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
-
readMasterPasswordFile
Return the master password stored in the master password keystore.- Parameters:
config-- Returns:
- null if the password file does not exist, the password otherwise.
- Throws:
RepositoryException
-
changeMasterPasswordInMasterPasswordFile
protected void changeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword) throws RepositoryException Changes the master password in the master password file- Parameters:
config-newPassword-saveMasterPassword-- 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-newPassword-saveMasterPassword-- Throws:
RepositoryException
-