public class PEDomainsManager extends RepositoryManager implements DomainsManager
RepositoryManager.RepositoryManagerMessages
KeystoreManager.KeytoolExecutor
Modifier and Type | Field and Description |
---|---|
static String |
PROFILEPROPERTY_DOMAINXML_STYLESHEETS |
static String |
PROFILEPROPERTY_DOMAINXML_TOKENVALUES |
CERTUTIL_CMD, DEBUG, messages, NEW_LINE
_fileLayout, CERTIFICATE_ALIAS, DEFAULT_MASTER_PASSWORD, INSTANCE_SECURE_ADMIN_ALIAS
Constructor and Description |
---|
PEDomainsManager() |
Modifier and Type | Method and Description |
---|---|
void |
changeMasterPassword(DomainConfig config)
Changes the master password for the domain
|
protected void |
createJBIInstance(String instanceName,
DomainConfig domainConfig) |
protected void |
createScripts(DomainConfig domainConfig) |
void |
deleteDomain(DomainConfig domainConfig)
Deletes a domain identified by the given name.
|
protected File |
getDomainDir(DomainConfig domainConfig) |
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.
|
protected static String |
getDomainPasswordClear(DomainConfig domainConfig)
Returns the domain user's password in cleartext from the domainConfig.
|
protected File |
getDomainRoot(DomainConfig domainConfig) |
protected static String |
getDomainUser(DomainConfig domainConfig)
Returns the domain user from the domainConfig.
|
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.
|
protected static String |
getMasterPasswordClear(DomainConfig domainConfig) |
protected static String |
getNewMasterPasswordClear(DomainConfig domainConfig) |
String[] |
listDomains(DomainConfig domainConfig)
Lists all the domains.
|
protected static boolean |
saveMasterPassword(DomainConfig domainConfig) |
void |
validateDomain(DomainConfig domainConfig,
boolean domainExists) |
void |
validateMasterPassword(DomainConfig domainConfig)
Checks that the master password in the config is valid for the keystore
|
changePasswordAliasKeystorePassword, checkRepository, checkRepository, checkRepository, createHttpBCInstallRoot, createJavaEESEInstallRoot, createJBIInstance, createMQInstance, createTimerDbn, createTimerWal, createWSDLSLInstallRoot, deleteRepository, deleteRepository, generateFromTemplate, getClearPasswordForAlias, getConfigForRepositoryStatus, getInteractiveOptions, getMessages, getRepositoryDir, getRepositoryRootDir, isNSSSupportAvailable, isValidRepository, isValidRepository, listRepository, repositoryExists, setMessages, setPermissions, validateMasterPassword
changeMasterPasswordInMasterPasswordFile, changeMasterPasswordInMasterPasswordFile, createMasterPasswordFile, deleteMasterPasswordFile, readMasterPasswordFile
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
public static final String PROFILEPROPERTY_DOMAINXML_STYLESHEETS
public static final String PROFILEPROPERTY_DOMAINXML_TOKENVALUES
public BitSet getDomainFlags()
DomainsManager
getDomainFlags
in interface DomainsManager
public void validateDomain(DomainConfig domainConfig, boolean domainExists) throws DomainException
validateDomain
in interface DomainsManager
DomainException
public void validateMasterPassword(DomainConfig domainConfig) throws DomainException
DomainsManager
validateMasterPassword
in interface DomainsManager
domainConfig
- the config to get the password fromDomainException
- if the password fails to open the keystoreprotected void createJBIInstance(String instanceName, DomainConfig domainConfig) throws DomainException
DomainException
public void deleteDomain(DomainConfig domainConfig) throws DomainException
DomainsManager
deleteDomain
in interface DomainsManager
DomainException
- This exception is thrown if
public String[] listDomains(DomainConfig domainConfig) throws DomainException
listDomains
in interface DomainsManager
DomainException
- if an exception occuredprotected void createScripts(DomainConfig domainConfig) throws DomainException
DomainException
protected File getDomainDir(DomainConfig domainConfig)
protected File getDomainRoot(DomainConfig domainConfig)
protected static String getDomainUser(DomainConfig domainConfig)
domainConfig
- that represents the domain configurationprotected static String getDomainPasswordClear(DomainConfig domainConfig)
domainConfig
- that represents the domain configurationprotected static String getMasterPasswordClear(DomainConfig domainConfig)
protected static String getNewMasterPasswordClear(DomainConfig domainConfig)
protected static boolean saveMasterPassword(DomainConfig domainConfig)
public void changeMasterPassword(DomainConfig config) throws DomainException
changeMasterPassword
in interface DomainsManager
config
- the config for the domain to changeDomainException
public String[] getExtraPasswordOptions(DomainConfig config) throws DomainException
DomainsManager
getExtraPasswordOptions
in interface DomainsManager
config
- the config to get the options fromDomainException
- if an error occurredCopyright © 2021. All rights reserved.