HasClaim class

Check whether the client has a claim with the specified name and value.

Inheritance

Constructors

HasClaim(String name, String value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

evaluate(Map<String, dynamic> claims, Map<String, String> headers) bool
Returns false when the client is not allowed to access the resource. Claims contains all security claims found for the principal (eg. in a JWT token). Headers returns all path and query parameters, and HTTP headers.
override
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