public class PEDomainsManager extends RepositoryManager implements DomainsManager
RepositoryManager.RepositoryManagerMessagesKeystoreManager.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, validateMasterPasswordchangeMasterPasswordInMasterPasswordFile, changeMasterPasswordInMasterPasswordFile, createMasterPasswordFile, deleteMasterPasswordFile, readMasterPasswordFileaddKeyPair, addKeyPair, changeKeyPassword, changeKeyStorePassword, changeKeyStorePassword, changeKeyStorePassword, changeS1ASAliasPassword, changeSSLCertificateDatabasePassword, chmod, copyCertificates, copyCertificatesFromJdk, createKeyStore, enforcePasswordComplexity, getCertificateDN, getDASCertDN, getFileLayout, getInstanceCertDN, getValidCertificateAliases, openKeyStore, readPemCertificateChain, readPlainPKCS8PrivateKey, readPlainPKCS8PrivateKey, saveKeyStorepublic static final String PROFILEPROPERTY_DOMAINXML_STYLESHEETS
public static final String PROFILEPROPERTY_DOMAINXML_TOKENVALUES
public BitSet getDomainFlags()
DomainsManagergetDomainFlags in interface DomainsManagerpublic void validateDomain(DomainConfig domainConfig, boolean domainExists) throws DomainException
validateDomain in interface DomainsManagerDomainExceptionpublic void validateMasterPassword(DomainConfig domainConfig) throws DomainException
DomainsManagervalidateMasterPassword in interface DomainsManagerdomainConfig - the config to get the password fromDomainException - if the password fails to open the keystoreprotected void createJBIInstance(String instanceName, DomainConfig domainConfig) throws DomainException
DomainExceptionpublic void deleteDomain(DomainConfig domainConfig) throws DomainException
DomainsManagerdeleteDomain in interface DomainsManagerDomainException - This exception is thrown if
public String[] listDomains(DomainConfig domainConfig) throws DomainException
listDomains in interface DomainsManagerDomainException - if an exception occuredprotected void createScripts(DomainConfig domainConfig) throws DomainException
DomainExceptionprotected 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 DomainsManagerconfig - the config for the domain to changeDomainExceptionpublic String[] getExtraPasswordOptions(DomainConfig config) throws DomainException
DomainsManagergetExtraPasswordOptions in interface DomainsManagerconfig - the config to get the options fromDomainException - if an error occurredCopyright © 2019. All rights reserved.