クラス
java.net.Authenticatorの使用
Authenticatorを使用しているパッケージ
-
java.netでのAuthenticatorの使用
Authenticatorを返すjava.netのメソッドAuthenticator型のパラメータを持つjava.netのメソッド修飾子と型メソッド説明static PasswordAuthenticationAuthenticator.requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType) 与えられたauthenticatorにパスワードを尋ねます。voidHttpURLConnection.setAuthenticator(Authenticator auth) このHttpURLConnectionのHTTPプロトコルで認証がリクエストされたときに使用するAuthenticatorを供給します。static voidAuthenticator.setDefault(Authenticator a) オーセンティケータを設定します。このオーセンティケータは、プロキシ・サーバーまたはHTTPサーバーからオーセンティケータを要求されたときに、ネットワーク・コードが使います。 -
java.net.httpでのAuthenticatorの使用
型Authenticatorの引数を持つ型を返すjava.net.httpのメソッド修飾子と型メソッド説明abstract Optional<Authenticator>HttpClient.authenticator()このクライアントに設定されたAuthenticatorを含むOptionalを返します。型Authenticatorのパラメータを持つjava.net.httpのメソッド修飾子と型メソッド説明HttpClient.Builder.authenticator(Authenticator authenticator) HTTP認証に使用するオーセンティケータを設定します。