Package org.apache.jmeter.util
Class SSLManager
-
- All Implemented Interfaces:
public abstract class SSLManager
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.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
JAVAX_NET_SSL_KEY_STORE
-
Method Summary
Modifier and Type Method Description static void
reset()
Resets the SSLManager so that we can create a new one with a new keystore abstract void
setContext(HttpURLConnection conn)
static SSLManager
getInstance()
Static accessor for the SSLManager object. static boolean
isSSLSupported()
Test whether SSL is supported or not. synchronized void
configureKeystore(boolean preload, int startIndex, int endIndex, String clientCertAliasVarName)
Configure Keystore synchronized void
destroyKeystore()
Destroy Keystore -
-
Method Detail
-
reset
static void reset()
Resets the SSLManager so that we can create a new one with a new keystore
-
setContext
abstract void setContext(HttpURLConnection conn)
-
getInstance
static SSLManager getInstance()
Static accessor for the SSLManager object. The SSLManager is a singleton.
- Returns:
the singleton SSLManager
-
isSSLSupported
static boolean isSSLSupported()
Test whether SSL is supported or not.
- Returns:
flag whether SSL is supported
-
configureKeystore
synchronized void configureKeystore(boolean preload, int startIndex, int endIndex, String clientCertAliasVarName)
Configure Keystore
- Parameters:
preload
- flag whether the keystore should be opened within this method, or the opening should be delayedstartIndex
- first index to consider for a keyendIndex
- last index to consider for a keyclientCertAliasVarName
- name of the default key, if empty the first key will be used as default key
-
destroyKeystore
synchronized void destroyKeystore()
Destroy Keystore
-
-
-
-