Uses of Class
java.net.Authenticator
-
Packages that use Authenticator Package Description java.net Provides the classes for implementing networking applications.jdk.incubator.http High level HTTP and WebSocket API -
-
Uses of Authenticator in java.net
Methods in java.net that return Authenticator Modifier and Type Method Description static Authenticator
Authenticator. getDefault()
Gets the default authenticator.Methods in java.net with parameters of type Authenticator Modifier and Type Method Description static PasswordAuthentication
Authenticator. requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)
Ask the givenauthenticator
for a password.void
HttpURLConnection. setAuthenticator(Authenticator auth)
Supplies anAuthenticator
to be used when authentication is requested through the HTTP protocol for thisHttpURLConnection
.static void
Authenticator. setDefault(Authenticator a)
Sets the authenticator that will be used by the networking code when a proxy or an HTTP server asks for authentication. -
Uses of Authenticator in jdk.incubator.http
Methods in jdk.incubator.http that return types with arguments of type Authenticator Modifier and Type Method Description abstract Optional<Authenticator>
HttpClient. authenticator()
Returns anOptional
containing theAuthenticator
set on this client.Methods in jdk.incubator.http with parameters of type Authenticator Modifier and Type Method Description abstract HttpClient.Builder
HttpClient.Builder. authenticator(Authenticator a)
Sets an authenticator to use for HTTP authentication.
-