DVApiScopes class final
The scopes an application declares under dartvel.platformApi.scopes.
Constructors
Properties
Methods
-
actionsFor(
String scope) → Set< String> -
The actions
scopegrants, or an empty set when it is not declared. -
actionsOf(
Iterable< String> scopes) → Set<String> -
Every action
scopesgrant between them. A name that is not declared grants nothing: names are looked up whole, never matched as prefixes. -
covers(
Iterable< String> granted, String action) → bool -
Whether
grantedcoversaction, compared whole. -
defines(
String scope) → bool -
Whether
scopeis declared, by its whole name. -
describe(
String scope) → String -
The words a consent screen uses for
scope. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requireDeclared(
Iterable< String> scopes) → void -
Throws DVUndeclaredApiScope when any of
scopesis not declared. -
toString(
) → String -
A string representation of this object.
inherited
-
undeclared(
Iterable< String> scopes) → List<String> -
The names in
scopesthis application does not declare. -
validateAgainst(
Set< String> registeredPolicies) → void -
Fails with
DV-APIKEY-001when a scope names an action no registered policy defines.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
actionName(
String resource, String action) → String -
The action
DV.Auth.authorizationchecks foractiononresource. -
policyKeyOf(
String action) → String -
The key
DV.Auth.authorizationregistersactionunder:Order.viewisview:Order.