Interface AuthorizationChecker

  • All Known Implementing Classes:
    DefaultAuthorizationChecker
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface AuthorizationChecker
    The way to check authorizations.
    Since:
    1.8.0
    Author:
    Jerome Leleu
    • Method Detail

      • isAuthorized

        boolean isAuthorized​(WebContext context,
                             SessionStore sessionStore,
                             java.util.List<UserProfile> profiles,
                             java.lang.String authorizerNames,
                             java.util.Map<java.lang.String,​Authorizer> authorizersMap,
                             java.util.List<Client> clients)
        Check whether the user is authorized.
        Parameters:
        context - the web context
        sessionStore - the session store
        profiles - the profile
        authorizerNames - the authorizers
        authorizersMap - the map of authorizers
        clients - the clients
        Returns:
        whether the user is authorized.