Apache JMeter
2.0.1.20050615

org.apache.jmeter.util
Class SSLManager

java.lang.Object
  extended byorg.apache.jmeter.util.SSLManager
Direct Known Subclasses:
JsseSSLManager

public abstract class SSLManager
extends Object

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.

Version:
CVS $Revision: 1.9.2.2 $ $Date: 2004/09/23 21:46:26 $
Author:
Berin Loritsch

Field Summary
protected  String defaultpw
          Have the password available
 
Constructor Summary
protected SSLManager()
          Protected Constructor to remove the possibility of directly instantiating this object.
 
Method Summary
static SSLManager getInstance()
          Static accessor for the SSLManager object.
protected  org.apache.jmeter.util.keystore.JmeterKeyStore getKeyStore()
          Opens and initializes the KeyStore.
protected  KeyStore getTrustStore()
          Opens and initializes the TrustStore.
static boolean isSSLSupported()
          Test wether 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultpw

protected String defaultpw
Have the password available

Constructor Detail

SSLManager

protected SSLManager()
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.

Method Detail

reset

public static void reset()
Resets the SSLManager so that we can create a new one with a new keystore


setContext

public abstract void setContext(HttpURLConnection conn)

setProvider

protected void setProvider(Provider provider)
Default implementation of setting the Provider


getKeyStore

protected org.apache.jmeter.util.keystore.JmeterKeyStore getKeyStore()
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()
Opens and initializes the TrustStore.


getInstance

public static final SSLManager getInstance()
Static accessor for the SSLManager object. The SSLManager is a singleton.


isSSLSupported

public static final boolean isSSLSupported()
Test wether SSL is supported or not.


Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.