|
||||||||||
| 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 java.lang.String |
CERTIFICATE_ALIAS
|
static java.lang.String |
DEFAULT_MASTER_PASSWORD
|
static java.lang.String |
INSTANCE_SECURE_ADMIN_ALIAS
|
| Constructor Summary | |
|---|---|
KeystoreManager()
Creates a new instance of RepositoryManager |
|
| Method Summary | |
|---|---|
protected void |
changeKeystorePassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.io.File keystore)
Changes the keystore password |
protected void |
changeS1ASAliasPassword(RepositoryConfig config,
java.lang.String storePassword,
java.lang.String oldKeyPassword,
java.lang.String newKeyPassword)
Changes the key password for the default cert whose alias is s1as. |
protected void |
changeSSLCertificateDatabasePassword(RepositoryConfig config,
java.lang.String oldPassword,
java.lang.String newPassword)
Changes the password of the keystore, truststore and the key password of the s1as alias. |
protected void |
chmod(java.lang.String args,
java.io.File file)
|
protected void |
createKeyStore(RepositoryConfig config,
java.lang.String masterPassword)
Create the default SSL key store using keytool to generate a self signed certificate. |
protected void |
createSSLCertificateDatabase(RepositoryConfig config,
java.lang.String masterPassword)
Creates the SSL certificate database. |
protected void |
createTrustStore(RepositoryConfig config,
java.lang.String masterPassword)
Create the default SSL trust store. |
protected static java.lang.String |
getCertificateDN(RepositoryConfig cfg,
java.lang.String CNSuffix)
|
static java.lang.String |
getDASCertDN(RepositoryConfig cfg)
|
protected PEFileLayout |
getFileLayout(RepositoryConfig config)
|
static java.lang.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 java.lang.String CERTIFICATE_ALIAS
public static final java.lang.String INSTANCE_SECURE_ADMIN_ALIAS
public static final java.lang.String DEFAULT_MASTER_PASSWORD
protected PEFileLayout _fileLayout
| Constructor Detail |
|---|
public KeystoreManager()
| Method Detail |
|---|
protected static java.lang.String getCertificateDN(RepositoryConfig cfg,
java.lang.String CNSuffix)
protected PEFileLayout getFileLayout(RepositoryConfig config)
protected void createSSLCertificateDatabase(RepositoryConfig config,
java.lang.String masterPassword)
config - masterPassword -
RepositoryException
protected void createKeyStore(RepositoryConfig config,
java.lang.String masterPassword)
throws RepositoryException
config - masterPassword -
RepositoryException
protected void createTrustStore(RepositoryConfig config,
java.lang.String masterPassword)
throws RepositoryException
config - masterPassword -
RepositoryException
protected void changeKeystorePassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.io.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,
java.lang.String storePassword,
java.lang.String oldKeyPassword,
java.lang.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,
java.lang.String oldPassword,
java.lang.String newPassword)
throws RepositoryException
config - storePassword - oldKeyPassword - newKeyPassword -
RepositoryException
protected void chmod(java.lang.String args,
java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getDASCertDN(RepositoryConfig cfg)
public static java.lang.String getInstanceCertDN(RepositoryConfig cfg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||