public class AsadminSecurityUtil extends Object
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.
Modifier and Type | Method and Description |
---|---|
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 File |
getDefaultClientDir()
Get the default location for client related files
|
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.
|
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 passwordpublic 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 passwordpublic static char[] getAsadminTruststorePassword()
public static File getDefaultClientDir()
public AsadminTruststore getAsadminTruststore()
public KeyStore getAsadminKeystore()
Copyright © 2018. All rights reserved.