@ProviderType
public interface ScopeChecker
Modifier and Type | Method and Description |
---|---|
default boolean |
checkAllScopes(java.lang.String... scopes)
Returns
true if the current request has been authorized for
all given scopes. |
default boolean |
checkAnyScope(java.lang.String... scopes)
Returns
true if the current request has been authorized for
any of the given scopes. |
boolean |
checkScope(java.lang.String scope)
Returns
true if the current request has been authorized for
the given scope. |
default boolean checkAllScopes(java.lang.String... scopes)
true
if the current request has been authorized for
all given scopes.scopes
- the scopes to check the request for authorizationtrue
if the request has been authorized for all
given scopes; false
otherwisedefault boolean checkAnyScope(java.lang.String... scopes)
true
if the current request has been authorized for
any of the given scopes.scopes
- the scopes to check the request for authorizationtrue
if the request has been authorized for any of
the given scopes; false
otherwiseboolean checkScope(java.lang.String scope)
true
if the current request has been authorized for
the given scope.scope
- the scope to check the request for authorizationtrue
if the request has been authorized for the
given scope; false
otherwise