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