Interface ScopeChecker
@ProviderType
public interface ScopeChecker
Provides a programmatic interface for applications to check scope
authorization in a JAX-RS request.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckAllScopes(String... scopes) Returnstrueif the current request has been authorized for all given scopes.default booleancheckAnyScope(String... scopes) Returnstrueif the current request has been authorized for any of the given scopes.booleancheckScope(String scope) Returnstrueif the current request has been authorized for the given scope.
-
Method Details
-
checkAllScopes
Returnstrueif the current request has been authorized for all given scopes.- Parameters:
scopes- the scopes to check the request for authorization- Returns:
trueif the request has been authorized for all given scopes;falseotherwise
-
checkAnyScope
Returnstrueif the current request has been authorized for any of the given scopes.- Parameters:
scopes- the scopes to check the request for authorization- Returns:
trueif the request has been authorized for any of the given scopes;falseotherwise
-
checkScope
Returnstrueif the current request has been authorized for the given scope.- Parameters:
scope- the scope to check the request for authorization- Returns:
trueif the request has been authorized for the given scope;falseotherwise
-