Interface DomainsManager
-
- All Known Implementing Classes:
PEDomainsManager
public interface DomainsManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeMasterPassword(DomainConfig domainConfig)Changes the master password for the domainvoiddeleteDomain(DomainConfig domainConfig)Deletes a domain identified by the given name.BitSetgetDomainFlags()In SE/EE we need an admin user/password that the DAS can use to authenticate to Node Agents and servers in the domain.String[]getExtraPasswordOptions(DomainConfig config)SE/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.String[]listDomains(DomainConfig domainConfig)Lists all the domains.voidvalidateDomain(DomainConfig domainConfig, boolean domainExists)voidvalidateMasterPassword(DomainConfig config)Checks that the master password in the config is valid for the keystore
-
-
-
Method Detail
-
getDomainFlags
BitSet getDomainFlags()
In 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- Returns:
- flags toggling SE/EE specific behavior.
-
getExtraPasswordOptions
String[] getExtraPasswordOptions(DomainConfig config) throws DomainException
SE/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.- Parameters:
config- the config to get the options from- Returns:
- the extra options
- Throws:
DomainException- if an error occurred
-
deleteDomain
void deleteDomain(DomainConfig domainConfig) throws DomainException
Deletes a domain identified by the given name. (Should we stop the DAS and instances administered by this domain before deleting the domain?)- Parameters:
domainConfig-- Throws:
DomainException- This exception is thrown if-
- the domain does not exist.
- an exception occurred while deleting the domain.
-
listDomains
String[] listDomains(DomainConfig domainConfig) throws DomainException
Lists all the domains.- Parameters:
domainConfig-- Returns:
- an array of all the domain names
- Throws:
DomainException- if an exception occured
-
changeMasterPassword
void changeMasterPassword(DomainConfig domainConfig) throws DomainException
Changes the master password for the domain- Parameters:
domainConfig- the config for the domain to change- Throws:
DomainException
-
validateDomain
void validateDomain(DomainConfig domainConfig, boolean domainExists) throws DomainException
- Throws:
DomainException
-
validateMasterPassword
void validateMasterPassword(DomainConfig config) throws DomainException
Checks that the master password in the config is valid for the keystore- Parameters:
config- the config to get the password from- Throws:
DomainException- if the password fails to open the keystore
-
-