HasClaim class
Check whether the client has a claim with the specified name and value.
- Inheritance
-
- Object
- SecurityCondition
- HasClaim
Properties
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