クラス
java.net.Authenticatorの使用
Authenticatorを使用しているパッケージ
-
java.netでのAuthenticatorの使用
Authenticatorを返すjava.netのメソッドAuthenticator型のパラメータを持つjava.netのメソッド修飾子と型メソッド説明static PasswordAuthentication
Authenticator.requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)
与えられたauthenticator
にパスワードを尋ねます。void
HttpURLConnection.setAuthenticator(Authenticator auth)
このHttpURLConnection
のHTTPプロトコルで認証がリクエストされたときに使用するAuthenticator
を供給します。static void
Authenticator.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認証に使用するオーセンティケータを設定します。