public class KeystoreManager extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
KeystoreManager.KeytoolExecutor |
| Modifier and Type | Field and Description |
|---|---|
protected PEFileLayout |
_fileLayout |
static String |
CERTIFICATE_ALIAS |
static String |
DEFAULT_MASTER_PASSWORD |
static String |
INSTANCE_SECURE_ADMIN_ALIAS |
| Constructor and Description |
|---|
KeystoreManager()
Creates a new instance of RepositoryManager
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeKeystorePassword(String oldPassword,
String newPassword,
File keystore)
Changes the keystore password
|
protected void |
changeS1ASAliasPassword(RepositoryConfig config,
String storePassword,
String oldKeyPassword,
String newKeyPassword)
Changes the key password for the default cert whose alias is s1as.
|
protected void |
changeSSLCertificateDatabasePassword(RepositoryConfig config,
String oldPassword,
String newPassword)
Changes the password of the keystore, truststore and the key password of
the s1as alias.
|
protected void |
chmod(String args,
File file) |
protected void |
copyCertificates(File configRoot,
DomainConfig config,
String masterPassword) |
protected void |
createKeyStore(File keystore,
RepositoryConfig config,
String masterPassword)
Create the default SSL key store using keytool to generate a self signed
certificate.
|
protected static String |
getCertificateDN(RepositoryConfig cfg,
String CNSuffix) |
static String |
getDASCertDN(RepositoryConfig cfg) |
protected PEFileLayout |
getFileLayout(RepositoryConfig config) |
static String |
getInstanceCertDN(RepositoryConfig cfg) |
public static final String CERTIFICATE_ALIAS
public static final String INSTANCE_SECURE_ADMIN_ALIAS
public static final String DEFAULT_MASTER_PASSWORD
protected PEFileLayout _fileLayout
public KeystoreManager()
protected static String getCertificateDN(RepositoryConfig cfg, String CNSuffix)
protected PEFileLayout getFileLayout(RepositoryConfig config)
protected void createKeyStore(File keystore, RepositoryConfig config, String masterPassword) throws RepositoryException
config - masterPassword - RepositoryExceptionprotected void copyCertificates(File configRoot, DomainConfig config, String masterPassword) throws DomainException
DomainExceptionprotected void changeKeystorePassword(String oldPassword, String newPassword, File keystore) throws RepositoryException
oldPassword - the old keystore passwordnewPassword - the new keystore passwordkeystore - the keystore whose password is to be changed.RepositoryExceptionprotected void changeS1ASAliasPassword(RepositoryConfig config, String storePassword, String oldKeyPassword, String newKeyPassword) throws RepositoryException
config - storePassword - the keystore passwordoldKeyPassword - the old password for the s1as aliasnewKeyPassword - the new password for the s1as aliasRepositoryExceptionprotected void changeSSLCertificateDatabasePassword(RepositoryConfig config, String oldPassword, String newPassword) throws RepositoryException
config - storePassword - oldKeyPassword - newKeyPassword - RepositoryExceptionprotected void chmod(String args, File file) throws IOException
IOExceptionpublic static String getDASCertDN(RepositoryConfig cfg)
public static String getInstanceCertDN(RepositoryConfig cfg)
Copyright © 2018 Eclipse Foundation. All rights reserved.