Interface AuthorizationInterceptor

  • All Known Implementing Classes:
    AuthorizationInterceptorImpl

    public interface AuthorizationInterceptor
    Interceptor which checks authorization for all of the HTTP requests.
    • Method Detail

      • addPathNotRequiringAuth

        void addPathNotRequiringAuth​(@NotNull
                                     Class<?> handlerType,
                                     @NotNull
                                     String path)
        Adds path associated with particular handler class that does not require authentication check.
        Parameters:
        handlerType - a handler class that does not require authentication for provided path.
        path - a path.
        Since:
        2024.03
      • addPathBasedPermissionsChecker

        void addPathBasedPermissionsChecker​(@NotNull
                                            String path,
                                            @NotNull
                                            RequestPermissionsChecker checker)
        Adds new request permissions checker.
        Parameters:
        path - request path to which the specified checker is bounded. Note that the path does not include context part.
        checker - checker to invoke for the specified request path
      • removePathBasePermissionsChecker

        void removePathBasePermissionsChecker​(@NotNull
                                              String requestPath,
                                              @NotNull
                                              RequestPermissionsChecker checker)
        Removes permissions checker from interceptor