const class web::WebAuthScheme

sys::Obj
  web::WebAuthScheme

@Js

Source

Models an HTTP challenge/response authentication scheme as defined in RFC7235. Auth schemes have a case-insensitive name, and either

  1. a single value, or
  2. a a map of auth parameters that have case-insensitive keys.
addParams

WebAuthScheme addParams(Str:Str params)

Source

get

@Operator
Str? get(Str param, Str? defVal := null)

Source

Get a value from the auth-params, or return the defVal.

isScheme

Bool isScheme(Str name)

Source

Case-insensitive check to see if scheme matches name

isToken68

Bool isToken68()

Source

True if the auth scheme is using the token68 syntax.

makeParams

new makeParams(Str name, Str:Str params := ([Str:Str])[:])

Source

Make an auth scheme with the given name and a map of auth-params.

makeToken68

new makeToken68(Str name, Str tok68)

Source

Make an auth scheme with the given name and token68 value.

name

const Str name

Source

The auth scheme name

params

const Str:Str params := [Str:Str][:]

Source

The auth params for this scheme.

toStr

virtual override Str toStr()

Source

Encode the auth scheme for use as a header value.

tok68

const Str? tok68 := null

Source

The token68 value of this scheme.