public interface NetworkAuthenticatorContext
NetworkAuthenticator.requestPasswordAuthentication(NetworkAuthenticatorContext)
. The
details in the context can be used to determine the appropriate credentials for the connection. Connector developers
are not expected to implement this interface but should understand its usage when implementing a custom
NetworkAuthenticator
.NetworkAuthenticatorConnector
Modifier and Type | Method and Description |
---|---|
Authenticator.RequestorType |
getRequestingAuthType()
Returns whether the requestor is a Proxy or a Server.
|
String |
getRequestingHost()
Gets the hostname of the site or proxy requesting authentication, or
null if not available. |
int |
getRequestingPort()
Gets the port number for the requested connection.
|
String |
getRequestingPrompt()
Gets the prompt string given by the requestor.
|
String |
getRequestingProtocol()
Give the protocol that's requesting the connection.
|
String |
getRequestingScheme()
Gets the scheme of the requestor (the HTTP scheme for an HTTP firewall, for example).
|
InetAddress |
getRequestingSite()
Gets the
InetAddress of the site requesting authorization, or null if not available. |
URL |
getRequestingURL()
Returns the URL that resulted in this request for authentication.
|
String getRequestingHost()
null
if not available.InetAddress getRequestingSite()
InetAddress
of the site requesting authorization, or null
if not available.int getRequestingPort()
String getRequestingProtocol()
String getRequestingPrompt()
String getRequestingScheme()
URL getRequestingURL()
Authenticator.RequestorType getRequestingAuthType()