|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.servermgmt.KeystoreManager
com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
com.sun.enterprise.admin.servermgmt.RepositoryManager
public class 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.
| Nested Class Summary | |
|---|---|
protected class |
RepositoryManager.RepositoryManagerMessages
The RepositoryManagerMessages class is used to abstract out ResourceBundle messages that are specific to a domain, node-agent, or server instance. |
| Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager |
|---|
KeystoreManager.KeytoolExecutor |
| Field Summary | |
|---|---|
protected RepositoryManager.RepositoryManagerMessages |
_messages
|
protected static String |
CERTUTIL_CMD
|
static String |
DEBUG
|
protected static String |
NEW_LINE
|
| Fields inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager |
|---|
_fileLayout, CERTIFICATE_ALIAS, DEFAULT_MASTER_PASSWORD, INSTANCE_SECURE_ADMIN_ALIAS |
| Constructor Summary | |
|---|---|
RepositoryManager()
Creates a new instance of RepositoryManager |
|
| Method Summary | |
|---|---|
protected void |
changePasswordAliasKeystorePassword(RepositoryConfig config,
String oldPassword,
String newPassword)
Change the password protecting the password alias keystore |
protected void |
checkRepository(RepositoryConfig config)
|
void |
checkRepository(RepositoryConfig config,
boolean existingRepository)
|
void |
checkRepository(RepositoryConfig config,
boolean existingRepository,
boolean checkRootDir)
Sanity check on the repository. |
protected void |
createAdminKeyFile(RepositoryConfig config,
String user,
String clearPwd)
This method creates a separate administrative keyfile. |
void |
createHttpBCInstallRoot(PEFileLayout layout)
This method is used to create httpsoapbc install root |
void |
createJavaEESEInstallRoot(PEFileLayout layout)
This method is used to create Java EESE install root |
protected void |
createJBIInstance(String instanceName,
RepositoryConfig config)
Create JBI instance. |
protected void |
createKeyFile(RepositoryConfig config,
String user,
String password)
Create the FileRealm kefile from the given user and password. |
protected void |
createMQInstance(RepositoryConfig config)
Create MQ instance. |
protected void |
createPasswordAliasKeystore(RepositoryConfig config,
String password)
Create the password alias keystore (initially empty) |
protected void |
createServerPolicyFile(RepositoryConfig config)
Create the default server.policy file. |
protected void |
createTimerDbn(RepositoryConfig config)
Create the timer database dbn file. |
protected void |
createTimerWal(RepositoryConfig config)
Create the timer database wal file. |
void |
createWSDLSLInstallRoot(PEFileLayout layout)
This method is used to create WSDLSL install root |
protected void |
deleteRepository(RepositoryConfig config)
Deletes the repository (domain, node agent, server instance). |
protected void |
deleteRepository(RepositoryConfig config,
boolean deleteJMSProvider)
Deletes the repository (domain, node agent, server instance). |
protected void |
generateFromTemplate(TokenValueSet tokens,
File template,
File destinationFile)
|
String |
getClearPasswordForAlias(RepositoryConfig config,
String password,
String alias)
retrieve clear password from password alias keystore |
protected RepositoryConfig |
getConfigForRepositoryStatus(RepositoryConfig config,
String repository)
Return all repositories (domains, node agents, server instances) and their corresponding status (e.g. |
protected String[] |
getInteractiveOptions(String user,
String password,
String masterPassword,
HashMap extraPasswords)
Cleans the mq broker instances created for all the server instances that are managed by this domain. |
protected RepositoryManager.RepositoryManagerMessages |
getMessages()
|
protected File |
getRepositoryDir(RepositoryConfig config)
|
protected File |
getRepositoryRootDir(RepositoryConfig config)
|
protected void |
handleDerby(RepositoryConfig config)
|
static boolean |
isNSSSupportAvailable()
Determines if the NSS support is available in this installation. |
protected boolean |
isValidRepository(File f)
|
protected boolean |
isValidRepository(RepositoryConfig config)
|
protected String[] |
listRepository(RepositoryConfig config)
Return all repositories (domains, node agents, server instances) |
protected boolean |
repositoryExists(RepositoryConfig config)
|
protected void |
setMessages(RepositoryManager.RepositoryManagerMessages messages)
|
protected void |
setPermissions(RepositoryConfig repositoryConfig)
Sets the permissions for the domain directory, its config directory, startserv/stopserv scripts etc. |
void |
validateMasterPassword(RepositoryConfig config,
String password)
We validate the master password by trying to open the password alias keystore. |
| Methods inherited from class com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager |
|---|
changeMasterPasswordInMasterPasswordFile, createMasterPasswordFile, deleteMasterPasswordFile, readMasterPasswordFile |
| 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 |
| Field Detail |
|---|
protected static final String CERTUTIL_CMD
protected static final String NEW_LINE
protected RepositoryManager.RepositoryManagerMessages _messages
public static final String DEBUG
| Constructor Detail |
|---|
public RepositoryManager()
| Method Detail |
|---|
protected void setMessages(RepositoryManager.RepositoryManagerMessages messages)
protected RepositoryManager.RepositoryManagerMessages getMessages()
protected void generateFromTemplate(TokenValueSet tokens,
File template,
File destinationFile)
throws IOException
IOExceptionprotected boolean repositoryExists(RepositoryConfig config)
protected boolean isValidRepository(File f)
protected boolean isValidRepository(RepositoryConfig config)
protected File getRepositoryDir(RepositoryConfig config)
protected File getRepositoryRootDir(RepositoryConfig config)
protected void checkRepository(RepositoryConfig config)
throws RepositoryException
RepositoryException
public void checkRepository(RepositoryConfig config,
boolean existingRepository)
throws RepositoryException
RepositoryException
public void checkRepository(RepositoryConfig config,
boolean existingRepository,
boolean checkRootDir)
throws RepositoryException
RepositoryException
protected void setPermissions(RepositoryConfig repositoryConfig)
throws RepositoryException
RepositoryException
protected void deleteRepository(RepositoryConfig config)
throws RepositoryException
RepositoryException
protected void deleteRepository(RepositoryConfig config,
boolean deleteJMSProvider)
throws RepositoryException
RepositoryException
protected String[] listRepository(RepositoryConfig config)
throws RepositoryException
RepositoryException
protected RepositoryConfig getConfigForRepositoryStatus(RepositoryConfig config,
String repository)
protected void createAdminKeyFile(RepositoryConfig config,
String user,
String clearPwd)
throws RepositoryException
RepositoryExceptionPEFileLayout.ADMIN_KEY_FILE
protected void createKeyFile(RepositoryConfig config,
String user,
String password)
throws RepositoryException
RepositoryException
protected void createServerPolicyFile(RepositoryConfig config)
throws RepositoryException
RepositoryException
public void validateMasterPassword(RepositoryConfig config,
String password)
throws RepositoryException
config - password -
RepositoryException
public String getClearPasswordForAlias(RepositoryConfig config,
String password,
String alias)
throws RepositoryException
config - password - alias - for which the clear text password would returns
RepositoryException
protected void createPasswordAliasKeystore(RepositoryConfig config,
String password)
throws RepositoryException
config - password - password protecting the keystore
RepositoryException
protected void changePasswordAliasKeystorePassword(RepositoryConfig config,
String oldPassword,
String newPassword)
throws RepositoryException
config - oldPassword - old passwordnewPassword - new password
RepositoryException
protected void createJBIInstance(String instanceName,
RepositoryConfig config)
throws RepositoryException
RepositoryException
public void createHttpBCInstallRoot(PEFileLayout layout)
throws Exception
layout - PEFileLayout
Exception
public void createJavaEESEInstallRoot(PEFileLayout layout)
throws Exception
layout - PEFileLayout
Exception
public void createWSDLSLInstallRoot(PEFileLayout layout)
throws Exception
layout - PEFileLayout
Exception
protected void createMQInstance(RepositoryConfig config)
throws RepositoryException
RepositoryException
protected void createTimerWal(RepositoryConfig config)
throws RepositoryException
RepositoryException
protected void createTimerDbn(RepositoryConfig config)
throws RepositoryException
RepositoryException
protected void handleDerby(RepositoryConfig config)
throws RepositoryException
RepositoryException
protected String[] getInteractiveOptions(String user,
String password,
String masterPassword,
HashMap extraPasswords)
config -
RepositoryExceptionpublic static boolean isNSSSupportAvailable()
certutil executable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||