public final class Challenge extends Object
| 构造器和说明 |
|---|
Challenge(String scheme,
Map<String,String> authParams) |
Challenge(String scheme,
String realm) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,String> |
authParams()
Returns the auth params, including
realm and charset if present, but as
strings. |
Charset |
charset()
Returns the charset that should be used to encode the credentials.
|
boolean |
equals(Object other) |
int |
hashCode() |
String |
realm()
Returns the protection space.
|
String |
scheme()
Returns the authentication scheme, like
Basic. |
String |
toString() |
Challenge |
withCharset(Charset charset)
Returns a copy of this charset that expects a credential encoded with
charset. |
public Challenge withCharset(Charset charset)
charset.public String scheme()
Basic.public Map<String,String> authParams()
realm and charset if present, but as
strings. The map's keys are lowercase and should be treated case-insensitively.public String realm()
public Charset charset()
Copyright © 2024. All rights reserved.