com.sun.enterprise.admin.servermgmt
Class MasterPasswordFileManager

java.lang.Object
  extended by com.sun.enterprise.admin.servermgmt.KeystoreManager
      extended by com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
Direct Known Subclasses:
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.

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
MasterPasswordFileManager()
          Creates a new instance of RepositoryManager
 
Method Summary
protected  void changeMasterPasswordInMasterPasswordFile(RepositoryConfig config, String newPassword, boolean saveMasterPassword)
          Changes the master password in the master password file
protected  void createMasterPasswordFile(RepositoryConfig config, String masterPassword)
          Create the master password keystore.
protected  void deleteMasterPasswordFile(RepositoryConfig config)
           
 String readMasterPasswordFile(RepositoryConfig config)
          Return the master password stored in the master password keystore.
 
Methods inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
changeKeystorePassword, changeS1ASAliasPassword, changeSSLCertificateDatabasePassword, chmod, createKeyStore, createSSLCertificateDatabase, createTrustStore, getCertificateDN, getDASCertDN, getFileLayout, getInstanceCertDN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

readMasterPasswordFile

public String readMasterPasswordFile(RepositoryConfig config)
                              throws RepositoryException
Return the master password stored in the master password keystore.

Parameters:
config -
Returns:
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


Copyright © 2012 GlassFish Community. All Rights Reserved.