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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • reset

         static void reset()

        Resets the SSLManager so that we can create a new one with a new keystore

      • 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 delayed
        startIndex - first index to consider for a key
        endIndex - last index to consider for a key
        clientCertAliasVarName - name of the default key, if empty the first key will be used as default key