| java.lang.Object org.apache.jmeter.util.SSLManager
All known Subclasses: org.apache.jmeter.util.JsseSSLManager,
SSLManager | abstract public class SSLManager (Code) | | The SSLManager handles the KeyStore information for JMeter. Basically, it
handles all the logic for loading and initializing all the JSSE parameters
and selecting the alias to authenticate against if it is available.
SSLManager will try to automatically select the client certificate for you,
but if it can't make a decision, it will pop open a dialog asking you for
more information.
TODO? - N.B. does not currently allow the selection of a client certificate.
author: Berin Loritsch |
Constructor Summary | |
protected | SSLManager() Protected Constructor to remove the possibility of directly instantiating
this object. |
JAVAX_NET_SSL_KEY_STORE | final public static String JAVAX_NET_SSL_KEY_STORE(Code) | | |
defaultpw | protected String defaultpw(Code) | | Have the password available
|
SSLManager | protected SSLManager()(Code) | | Protected Constructor to remove the possibility of directly instantiating
this object. Create the SSLContext, and wrap all the X509KeyManagers with
our X509KeyManager so that we can choose our alias.
|
getInstance | final public static SSLManager getInstance()(Code) | | Static accessor for the SSLManager object. The SSLManager is a singleton.
|
getKeyStore | protected JmeterKeyStore getKeyStore()(Code) | | Opens and initializes the KeyStore. If the password for the KeyStore is
not set, this method will prompt you to enter it. Unfortunately, there is
no PasswordEntryField available from JOptionPane.
|
getTrustStore | protected KeyStore getTrustStore()(Code) | | Opens and initializes the TrustStore.
There are 3 possibilities:
- no truststore name provided, in which case the default Java truststore should be used
- truststore name is provided, and loads OK
- truststore name is provided, but is not found or does not load OK, in which case an empty
truststore is created
If the KeyStore object cannot be created, then this is currently treated the same
as if no truststore name was provided.
truststore- null: use Java truststore- otherwise, the truststore, which may be empty if the file could not be loaded. |
isSSLSupported | final public static boolean isSSLSupported()(Code) | | Test whether SSL is supported or not.
|
reset | public static void reset()(Code) | | Resets the SSLManager so that we can create a new one with a new keystore
|
setProvider | protected void setProvider(Provider provider)(Code) | | Default implementation of setting the Provider
|
|
|