const class web::WebAuthScheme
sys::Obj web::WebAuthScheme
@Js
Models an HTTP challenge/response authentication scheme as defined in RFC7235. Auth schemes have a case-insensitive name, and either
- a single value, or
- a a map of auth parameters that have case-insensitive keys.
- addParams
-
WebAuthScheme addParams(Str:Str params)
- get
-
@Operator
Str? get(Str param, Str? defVal := null)Get a value from the auth-params, or return the
defVal
. - isScheme
-
Case-insensitive check to see if scheme matches name
- isToken68
-
Bool isToken68()
True if the auth scheme is using the
token68
syntax. - makeParams
-
new makeParams(Str name, Str:Str params := ([Str:Str])[:])
Make an auth scheme with the given name and a map of auth-params.
- makeToken68
-
new makeToken68(Str name, Str tok68)
Make an auth scheme with the given name and token68 value.
- name
-
const Str name
The auth scheme name
- params
-
const Str:Str params := [Str:Str][:]
The auth params for this scheme.
- toStr
-
virtual override Str toStr()
Encode the auth scheme for use as a header value.
- tok68
-
const Str? tok68 := null
The token68 value of this scheme.