|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.security.store.AsadminSecurityUtil
public class AsadminSecurityUtil
Various utility methods related to certificate-based security.
In particular, this class opens both the client-side keystore and the client-side truststore when either one is requested. This allows us to prompt only once for the master password (if necessary) without storing the password the user responds with which would be a security risk.
| Method Summary | |
|---|---|
KeyStore |
getAsadminKeystore()
|
AsadminTruststore |
getAsadminTruststore()
Returns the opened AsadminTruststore object. |
static char[] |
getAsadminTruststorePassword()
Returns the master password for the keystore and truststore, as set by the system property (defaulted if the property is not set). |
static AsadminSecurityUtil |
getInstance(boolean isPromptable)
Returns the usable instance, creating it if needed. |
static AsadminSecurityUtil |
getInstance(char[] commandLineMasterPassword,
boolean isPromptable)
Returns the usable instance, creating it if needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AsadminSecurityUtil getInstance(char[] commandLineMasterPassword,
boolean isPromptable)
commandLineMasterPassword - password provided via the command lineisPromptable - if the command requiring the object was run by a human who is present to respond to a prompt for the master password
public static AsadminSecurityUtil getInstance(boolean isPromptable)
isPromptable - if the command requiring the object was run by a human who is present to respond to a prompt for the master password
public static char[] getAsadminTruststorePassword()
public AsadminTruststore getAsadminTruststore()
public KeyStore getAsadminKeystore()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||