Package jade.security

Class ThreadGroupHttpAuthenticator


  • public class ThreadGroupHttpAuthenticator
    extends Authenticator
    • Method Detail

      • getInstance

        public static final ThreadGroupHttpAuthenticator getInstance()
        Get a JVM instance of ThreadGroupHttpAuthenticator
        Returns:
        ThreadGroupHttpAuthenticator
      • setProxyHost

        public static void setProxyHost​(String proxyHost)
        Set the host of proxy
        Parameters:
        proxyHost - proxy host
      • setProxyPort

        public static void setProxyPort​(String proxyPort)
        Set the port of proxy
        Parameters:
        proxyPort - proxy port
      • setNonProxyHosts

        public static void setNonProxyHosts​(String nonProxyHosts)
        Set the list of host excluded from proxy. Use | to separate hosts. Permitted * as wildcards.
        Parameters:
        nonProxyHosts - list of hosts
      • setProxyCredential

        public void setProxyCredential​(String proxyUser,
                                       String proxyPassword)
        Set proxy authentication credential
        Parameters:
        proxyUser - authentication proxy user
        proxyPassword - authentication proxy password
      • resetProxy

        public void resetProxy()
        Reset all proxy settings
      • setServerCredential

        public void setServerCredential​(String threadGroupName,
                                        String username,
                                        String password)
        Set server authentication credential for a specific thread-group
        Parameters:
        threadGroupName - name of thread-group
        username - authentication server user
        password - authentication server password
      • setServerCredential

        public void setServerCredential​(ThreadGroup threadGroup,
                                        String username,
                                        String password)
        Set server authentication credential for a specific thread-group
        Parameters:
        threadGroup - thread-group
        username - authentication server user
        password - authentication server password
      • setDefaultServerCredential

        public void setDefaultServerCredential​(String username,
                                               String password)
        Set server authentication default credential
        Parameters:
        threadGroup - thread-group
        username - authentication server user
        password - authentication server password
      • resetServerCredential

        public void resetServerCredential​(String threadGroupName)
        Reset the server credential for specific thread-group
        Parameters:
        threadGroupName - name of thread-group
      • resetServerCredential

        public void resetServerCredential​(ThreadGroup threadGroup)
        Reset the server credential for specific thread-group
        Parameters:
        threadGroup - thread-group
      • resetDefaultServerCredential

        public void resetDefaultServerCredential()
        Reset the default server credential
      • resetAllCredentials

        public void resetAllCredentials()
        Reset all server and proxy credentials