クラス
java.net.Authenticatorの使用
-
Authenticatorを使用しているパッケージ パッケージ 説明 java.net ネットワーク・アプリケーションを実装するためのクラスを提供します。jdk.incubator.http 高レベルのHTTPとWebSocket API -
-
java.netでのAuthenticatorの使用
Authenticatorを戻すjava.netのメソッド 修飾子と型 メソッド 説明 static Authenticator
Authenticator. getDefault()
デフォルトの認証プロバイダを取得します。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サーバーからオーセンティケータを要求されたときに、ネットワーク・コードが使います。 -
jdk.incubator.httpでのAuthenticatorの使用
型Authenticatorの引数を持つ型を返すjdk.incubator.httpのメソッド 修飾子と型 メソッド 説明 abstract Optional<Authenticator>
HttpClient. authenticator()
このクライアントに設定されたAuthenticator
を含むOptional
を返します。型Authenticatorのパラメータを持つjdk.incubator.httpのメソッド 修飾子と型 メソッド 説明 abstract HttpClient.Builder
HttpClient.Builder. authenticator(Authenticator a)
HTTP認証に使用するオーセンティケータを設定します。
-