Package jade.security
Class ThreadGroupHttpAuthenticator
- java.lang.Object
-
- java.net.Authenticator
-
- jade.security.ThreadGroupHttpAuthenticator
-
public class ThreadGroupHttpAuthenticator extends Authenticator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.net.Authenticator
Authenticator.RequestorType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadGroupHttpAuthenticatorgetInstance()Get a JVM instance of ThreadGroupHttpAuthenticatorprotected PasswordAuthenticationgetPasswordAuthentication()voidresetAllCredentials()Reset all server and proxy credentialsvoidresetDefaultServerCredential()Reset the default server credentialvoidresetProxy()Reset all proxy settingsvoidresetServerCredential(String threadGroupName)Reset the server credential for specific thread-groupvoidresetServerCredential(ThreadGroup threadGroup)Reset the server credential for specific thread-groupvoidsetDefaultServerCredential(String username, String password)Set server authentication default credentialstatic voidsetNonProxyHosts(String nonProxyHosts)Set the list of host excluded from proxy.voidsetProxyCredential(String proxyUser, String proxyPassword)Set proxy authentication credentialstatic voidsetProxyHost(String proxyHost)Set the host of proxystatic voidsetProxyPort(String proxyPort)Set the port of proxyvoidsetServerCredential(String threadGroupName, String username, String password)Set server authentication credential for a specific thread-groupvoidsetServerCredential(ThreadGroup threadGroup, String username, String password)Set server authentication credential for a specific thread-group-
Methods inherited from class java.net.Authenticator
getDefault, getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthenticationInstance, setDefault
-
-
-
-
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 userproxyPassword- 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-groupusername- authentication server userpassword- 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-groupusername- authentication server userpassword- authentication server password
-
setDefaultServerCredential
public void setDefaultServerCredential(String username, String password)
Set server authentication default credential- Parameters:
threadGroup- thread-groupusername- authentication server userpassword- 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
-
getPasswordAuthentication
protected PasswordAuthentication getPasswordAuthentication()
- Overrides:
getPasswordAuthenticationin classAuthenticator
-
-