Class MasterPasswordFileManager
- java.lang.Object
-
- com.sun.enterprise.admin.servermgmt.KeystoreManager
-
- com.sun.enterprise.admin.servermgmt.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
-
-
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 Constructor Description MasterPasswordFileManager()Creates a new instance of RepositoryManager
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidchangeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword)Deprecated.protected voidchangeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword, String newMPLocation)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)Deprecated.protected voidcreateMasterPasswordFile(RepositoryConfig config, String masterPassword, String path)Create the master password keystore.protected voiddeleteMasterPasswordFile(RepositoryConfig config)StringreadMasterPasswordFile(RepositoryConfig config)Return the master password stored in the master password keystore.-
Methods inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
addKeyPair, addKeyPair, changeKeyPassword, changeKeyStorePassword, changeKeyStorePassword, changeKeyStorePassword, changeS1ASAliasPassword, changeSSLCertificateDatabasePassword, chmod, copyCert, copyCertificates, createKeyStore, enforcePasswordComplexity, getCertificateDN, getDASCertDN, getFileLayout, getInstanceCertDN, getInvalidCertificates, getValidCertificates, openKeyStore, readPemCertificateChain, readPlainPKCS8PrivateKey, readPlainPKCS8PrivateKey, saveKeyStore, updateCertificates
-
-
-
-
Method Detail
-
deleteMasterPasswordFile
protected void deleteMasterPasswordFile(RepositoryConfig config)
-
createMasterPasswordFile
@Deprecated protected void createMasterPasswordFile(RepositoryConfig config, String masterPassword) throws RepositoryException
Deprecated.Create the master password keystore at the default path. This routine can also modify the master password if the keystore already exists.- Parameters:
config-masterPassword-- Throws:
RepositoryException
-
createMasterPasswordFile
protected void createMasterPasswordFile(RepositoryConfig config, String masterPassword, @Nullable String path) throws RepositoryException
Create the master password keystore. This routine can also modify the master password if the keystore already exists- Parameters:
config- The config information.masterPassword- The password to set.path- The path to save the master password to.- Throws:
RepositoryException
-
readMasterPasswordFile
public String readMasterPasswordFile(RepositoryConfig config) throws RepositoryException
Return the master password stored in the master password keystore.- Parameters:
config-- Returns:
- Throws:
RepositoryException
-
changeMasterPasswordInMasterPasswordFile
@Deprecated protected void changeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword) throws RepositoryException
Deprecated.Changes the master password in the master password file- Parameters:
saveMasterPassword-config-newPassword-- Throws:
RepositoryException
-
changeMasterPasswordInMasterPasswordFile
protected void changeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword, @Nullable String newMPLocation) 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 filenewPassword- the new passwordsaveMasterPassword- whether to save the new password. If this is false then the old file will simply be deleted- Throws:
RepositoryException
-
-