Module bus.http

Class NetAuthenticator

java.lang.Object
org.miaixz.bus.http.secure.NetAuthenticator
All Implemented Interfaces:
Authenticator

public class NetAuthenticator extends Object implements Authenticator
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • NetAuthenticator

      public NetAuthenticator()
  • Method Details

    • authenticate

      public Request authenticate(Route route, Response response) throws IOException
      Description copied from interface: Authenticator
      该请求包含满足response中的身份验证挑战的凭据。如果无法满足挑战,则返回null 该路线是最好的努力,它目前可能不总是提供,即使在逻辑上可用 在应用程序拦截器中手动重用身份验证器时,例如在实现特定于客户机的重试时,也可能不提供此功能
      Specified by:
      authenticate in interface Authenticator
      Parameters:
      route - 路由信息
      response - 响应体
      Returns:
      返回一个请求
      Throws:
      IOException - 异常信息