AuthenticationChallenge class

A single challenge in a WWW-Authenticate header, parsed as per RFC 2617.

Each WWW-Authenticate header contains one or more challenges, representing valid ways to authenticate with the server.

Constructors

AuthenticationChallenge(String scheme, Map<String, String> parameters)
Creates a new challenge value with scheme and parameters.
AuthenticationChallenge.parse(String challenge)
Parses a single WWW-Authenticate challenge value.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters Map<String, String>
The parameters describing how to authenticate.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
The scheme describing the type of authentication that's required, for example "basic" or "digest".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parseHeader(String header) List<AuthenticationChallenge>
Parses a WWW-Authenticate header, which should contain one or more challenges.