public abstract class SSLManager extends Object
TODO? - N.B. does not currently allow the selection of a client certificate.
Modifier and Type | Field and Description |
---|---|
protected String |
defaultpw
Have the password available
|
static String |
JAVAX_NET_SSL_KEY_STORE |
Modifier | Constructor and Description |
---|---|
protected |
SSLManager()
Protected Constructor to remove the possibility of directly instantiating
this object.
|
Modifier and Type | Method and Description |
---|---|
void |
configureKeystore(boolean preload,
int startIndex,
int endIndex,
String clientCertAliasVarName)
Configure Keystore
|
void |
destroyKeystore()
Destroy Keystore
|
static SSLManager |
getInstance()
Static accessor for the SSLManager object.
|
protected JmeterKeyStore |
getKeyStore()
Opens and initializes the KeyStore.
|
protected KeyStore |
getTrustStore()
Opens and initializes the TrustStore.
|
static boolean |
isSSLSupported()
Test whether SSL is supported or not.
|
static void |
reset()
Resets the SSLManager so that we can create a new one with a new keystore
|
abstract void |
setContext(HttpURLConnection conn) |
protected void |
setProvider(Provider provider)
Default implementation of setting the Provider
|
public static final String JAVAX_NET_SSL_KEY_STORE
protected String defaultpw
protected SSLManager()
public static void reset()
public abstract void setContext(HttpURLConnection conn)
protected void setProvider(Provider provider)
provider
- the provider to useprotected JmeterKeyStore getKeyStore()
JmeterKeyStore
protected KeyStore getTrustStore()
null
when Java truststore should be used.
Otherwise the truststore, which may be empty if the file could not be
loaded.public static SSLManager getInstance()
SSLManager
public static boolean isSSLSupported()
public void configureKeystore(boolean preload, int startIndex, int endIndex, String clientCertAliasVarName)
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 keypublic void destroyKeystore()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.