|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.admin.servermgmt.KeystoreManager
public class KeystoreManager
| Nested Class Summary | |
|---|---|
protected static class |
KeystoreManager.KeytoolExecutor
|
| Field Summary | |
|---|---|
protected PEFileLayout |
_fileLayout
|
static String |
CERTIFICATE_ALIAS
|
static String |
DEFAULT_MASTER_PASSWORD
|
static String |
INSTANCE_SECURE_ADMIN_ALIAS
|
| Constructor Summary | |
|---|---|
KeystoreManager()
Creates a new instance of RepositoryManager |
|
| Method Summary | |
|---|---|
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 |
createKeyStore(RepositoryConfig config,
String masterPassword)
Create the default SSL key store using keytool to generate a self signed certificate. |
protected void |
createSSLCertificateDatabase(RepositoryConfig config,
String masterPassword)
Creates the SSL certificate database. |
protected void |
createTrustStore(RepositoryConfig config,
String masterPassword)
Create the default SSL trust store. |
protected static String |
getCertificateDN(RepositoryConfig cfg,
String CNSuffix)
|
static String |
getDASCertDN(RepositoryConfig cfg)
|
protected PEFileLayout |
getFileLayout(RepositoryConfig config)
|
static String |
getInstanceCertDN(RepositoryConfig cfg)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CERTIFICATE_ALIAS
public static final String INSTANCE_SECURE_ADMIN_ALIAS
public static final String DEFAULT_MASTER_PASSWORD
protected PEFileLayout _fileLayout
| Constructor Detail |
|---|
public KeystoreManager()
| Method Detail |
|---|
protected static String getCertificateDN(RepositoryConfig cfg,
String CNSuffix)
protected PEFileLayout getFileLayout(RepositoryConfig config)
protected void createSSLCertificateDatabase(RepositoryConfig config,
String masterPassword)
config - masterPassword -
RepositoryException
protected void createKeyStore(RepositoryConfig config,
String masterPassword)
throws RepositoryException
config - masterPassword -
RepositoryException
protected void createTrustStore(RepositoryConfig config,
String masterPassword)
throws RepositoryException
config - masterPassword -
RepositoryException
protected 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.
RepositoryException
protected 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 alias
RepositoryException
protected void changeSSLCertificateDatabasePassword(RepositoryConfig config,
String oldPassword,
String newPassword)
throws RepositoryException
config - storePassword - oldKeyPassword - newKeyPassword -
RepositoryException
protected void chmod(String args,
File file)
throws IOException
IOExceptionpublic static String getDASCertDN(RepositoryConfig cfg)
public static String getInstanceCertDN(RepositoryConfig cfg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||