Class PEDomainsManager
java.lang.Object
com.sun.enterprise.admin.servermgmt.KeystoreManager
com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
com.sun.enterprise.admin.servermgmt.RepositoryManager
com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager
- All Implemented Interfaces:
DomainsManager
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.RepositoryManager
RepositoryManager.RepositoryManagerMessagesNested classes/interfaces inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
KeystoreManager.KeytoolExecutor -
Field Summary
FieldsFields inherited from class com.sun.enterprise.admin.servermgmt.RepositoryManager
_messages, CERTUTIL_CMD, DEBUG, NEW_LINEFields 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 TypeMethodDescriptionvoidchangeMasterPassword(DomainConfig config) Changes the master password for the domainprotected voidcreateScripts(DomainConfig domainConfig) voiddeleteDomain(DomainConfig domainConfig) Deletes a domain identified by the given name.protected FilegetDomainDir(DomainConfig domainConfig) In SE/EE we need an admin user/password that the DAS can use to authenticate to Node Agents and servers in the domain.protected static StringgetDomainPasswordClear(DomainConfig domainConfig) Returns the domain user's password in cleartext from the domainConfig.protected FilegetDomainRoot(DomainConfig domainConfig) protected static StringgetDomainUser(DomainConfig domainConfig) Returns the domain user from the domainConfig.String[]getExtraPasswordOptions(DomainConfig config) SE/EE supports NSS as its native SSL database.protected static StringgetMasterPasswordClear(DomainConfig domainConfig) protected static StringgetNewMasterPasswordClear(DomainConfig domainConfig) String[]listDomains(DomainConfig domainConfig) Lists all the domains.protected static booleansaveMasterPassword(DomainConfig domainConfig) voidvalidateDomain(DomainConfig domainConfig, boolean domainExists) Changes the master password for the domainvoidvalidateMasterPassword(DomainConfig domainConfig) Methods inherited from class com.sun.enterprise.admin.servermgmt.RepositoryManager
changePasswordAliasKeystorePassword, checkRepository, checkRepository, checkRepository, createTimerDbn, createTimerWal, deleteRepository, deleteRepository, generateFromTemplate, getClearPasswordForAlias, getConfigForRepositoryStatus, getInteractiveOptions, getMessages, getRepositoryDir, getRepositoryRootDir, isNSSSupportAvailable, isValidRepository, isValidRepository, listRepository, repositoryExists, setMessages, setPermissions, validateMasterPasswordMethods inherited from class com.sun.enterprise.admin.servermgmt.MasterPasswordFileManager
changeMasterPasswordInMasterPasswordFile, changeMasterPasswordInMasterPasswordFile, createMasterPasswordFile, deleteMasterPasswordFile, readMasterPasswordFileMethods inherited from class com.sun.enterprise.admin.servermgmt.KeystoreManager
changeKeystorePassword, changeS1ASAliasPassword, changeSSLCertificateDatabasePassword, chmod, copyCertificatesToTrustStore, createKeyStore, getCertificateDN, getDASCertDN, getFileLayout, getInstanceCertDN
-
Field Details
-
PROFILEPROPERTY_DOMAINXML_STYLESHEETS
- See Also:
-
PROFILEPROPERTY_DOMAINXML_TOKENVALUES
- See Also:
-
-
Constructor Details
-
PEDomainsManager
public PEDomainsManager()
-
-
Method Details
-
getDomainFlags
Description copied from interface:DomainsManagerIn SE/EE we need an admin user/password that the DAS can use to authenticate to Node Agents and servers in the domain. This is not the case in PE; hence this flag -- DomainConfig.K_FLAG_START_DOMAIN_NEEDS_ADMIN_USER In SE/EE we need an extra non secure http port to host the Lockhart components which is controlled by -- DomainConfig.K_FLAG_CREATE_DOMAIN_NEEDS_ALTERNATE_ADMIN_PORT- Specified by:
getDomainFlagsin interfaceDomainsManager- Returns:
- flags toggling SE/EE specific behavior.
-
validateDomain
Description copied from interface:DomainsManagerChanges the master password for the domain- Specified by:
validateDomainin interfaceDomainsManager- Throws:
DomainException
-
validateMasterPassword
- Specified by:
validateMasterPasswordin interfaceDomainsManager- Throws:
DomainException
-
deleteDomain
Description copied from interface:DomainsManagerDeletes a domain identified by the given name. (Should we stop the DAS and instances administered by this domain before deleting the domain?)- Specified by:
deleteDomainin interfaceDomainsManager- Throws:
DomainException- This exception is thrown if-
- the domain doesnot exist. - an exception occurred while deleting the domain.
-
listDomains
Lists all the domains.- Specified by:
listDomainsin interfaceDomainsManager- Throws:
DomainException
-
createScripts
- Throws:
DomainException
-
getDomainDir
-
getDomainRoot
-
getDomainUser
Returns the domain user from the domainConfig.- Parameters:
domainConfig- that represents the domain configuration- Returns:
- String representing the domain user if the given map contains it, null otherwise
-
getDomainPasswordClear
Returns the domain user's password in cleartext from the domainConfig.- Parameters:
domainConfig- that represents the domain configuration- Returns:
- String representing the domain user password if the given map contains it, null otherwise
-
getMasterPasswordClear
-
getNewMasterPasswordClear
-
saveMasterPassword
-
changeMasterPassword
Changes the master password for the domain- Throws:
DomainException
-
getExtraPasswordOptions
Description copied from interface:DomainsManagerSE/EE supports NSS as its native SSL database. NSS is capable of supporting multiple slots (e.g. for different SSL hardware devices, smartcards, etc). Each device needs a specific password which the CLI must prompt for.- Specified by:
getExtraPasswordOptionsin interfaceDomainsManager- Throws:
DomainException
-