public abstract class SSLManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultpw
Have the password available
|
static java.lang.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,
java.lang.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 java.security.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(java.net.HttpURLConnection conn) |
protected void |
setProvider(java.security.Provider provider)
Default implementation of setting the Provider
|
public static final java.lang.String JAVAX_NET_SSL_KEY_STORE
protected java.lang.String defaultpw
protected SSLManager()
public static void reset()
public abstract void setContext(java.net.HttpURLConnection conn)
protected void setProvider(java.security.Provider provider)
provider
- the provider to useprotected JmeterKeyStore getKeyStore()
JmeterKeyStore
protected java.security.KeyStore getTrustStore()
public static SSLManager getInstance()
SSLManager
public static boolean isSSLSupported()
public void configureKeystore(boolean preload, int startIndex, int endIndex, java.lang.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.