public class ProxyAuthenticator
extends java.net.Authenticator
| Constructor and Description |
|---|
ProxyAuthenticator(java.lang.String userName,
java.lang.String password)
Create a ProxyAuthenticator with the specified username and password.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.net.PasswordAuthentication |
getPasswordAuthentication()
Return a PasswordAuthentication instance using the userName and password
specified in the constructor.
|
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefaultpublic ProxyAuthenticator(java.lang.String userName,
java.lang.String password)
userName - the username to authenticate withpassword - the password to authenticate withprotected java.net.PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class java.net.AuthenticatorCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.