Module bus.http

Class Challenge

java.lang.Object
org.miaixz.bus.http.secure.Challenge

public class Challenge extends Object
RFC 7235兼容的认证
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

  • Method Details

    • withCharset

      public Challenge withCharset(Charset charset)
      该副本需要使用charset编码的凭据.
      Parameters:
      charset - 字符集
      Returns:
      返回此字符集的副本
    • scheme

      public String scheme()
      Returns the authentication scheme, like Basic.
    • authParams

      public Map<String,String> authParams()
      Returns the auth params, including realm and charset if present, but as strings. The map's keys are lowercase and should be treated case-insensitively.
    • realm

      public String realm()
      Returns the protection space.
    • charset

      public Charset charset()
      Returns the charset that should be used to encode the credentials.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object