public final class Challenge extends Object
Constructor and Description |
---|
Challenge(String scheme,
Map<String,String> authParams) |
Challenge(String scheme,
String realm) |
Modifier and Type | Method and Description |
---|---|
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 © 2019. All rights reserved.