Interface AuthorizationInterceptor
-
- All Known Implementing Classes:
AuthorizationInterceptorImpl
public interface AuthorizationInterceptorInterceptor which checks authorization for all of the HTTP requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddPathBasedPermissionsChecker(String path, RequestPermissionsChecker checker)Adds new request permissions checker.voidaddPathNotRequiringAuth(Class<?> handlerType, String path)Adds path associated with particular handler class that does not require authentication check.voidaddPathNotRequiringAuth(String path)Deprecated.voidremovePathBasePermissionsChecker(String requestPath, RequestPermissionsChecker checker)Removes permissions checker from interceptor
-
-
-
Method Detail
-
addPathNotRequiringAuth
@Deprecated void addPathNotRequiringAuth(@NotNull String path)
Deprecated.Adds path that do not require authentication check.- Parameters:
path- a path
-
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
-
-