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 Type
    Method
    Description
    default boolean
    Returns true if the current request has been authorized for all given scopes.
    default boolean
    checkAnyScope(String... scopes)
    Returns true if the current request has been authorized for any of the given scopes.
    boolean
    Returns true if the current request has been authorized for the given scope.
  • Method Details

    • checkAllScopes

      default boolean checkAllScopes(String... scopes)
      Returns true if the current request has been authorized for all given scopes.
      Parameters:
      scopes - the scopes to check the request for authorization
      Returns:
      true if the request has been authorized for all given scopes; false otherwise
    • checkAnyScope

      default boolean checkAnyScope(String... scopes)
      Returns true if the current request has been authorized for any of the given scopes.
      Parameters:
      scopes - the scopes to check the request for authorization
      Returns:
      true if the request has been authorized for any of the given scopes; false otherwise
    • checkScope

      boolean checkScope(String scope)
      Returns true if the current request has been authorized for the given scope.
      Parameters:
      scope - the scope to check the request for authorization
      Returns:
      true if the request has been authorized for the given scope; false otherwise