Class AuthorizationInterceptorImpl
- java.lang.Object
-
- jetbrains.buildServer.controllers.interceptors.AuthorizationInterceptorImpl
-
- All Implemented Interfaces:
AuthorizationInterceptor
,org.springframework.web.servlet.AsyncHandlerInterceptor
,org.springframework.web.servlet.HandlerInterceptor
public class AuthorizationInterceptorImpl extends Object implements org.springframework.web.servlet.AsyncHandlerInterceptor, AuthorizationInterceptor
- Author:
- Pavel.Sher Date: 17.03.2006
-
-
Constructor Summary
Constructors Constructor Description AuthorizationInterceptorImpl(SecurityContextEx securityContext, CSRFFilter csrfFilter, AuthorizationPaths authorizationPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPathBasedPermissionsChecker(String requestPath, RequestPermissionsChecker checker)
Adds new request permissions checker.void
addPathNotRequiringAuth(Class<?> handlerType, String path)
Adds path associated wit particular handler class that does not require authentication check.void
addPathNotRequiringAuth(String path)
Adds path that does not require authentication check.boolean
preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
void
removePathBasePermissionsChecker(String requestPath, RequestPermissionsChecker checker)
Removes permissions checker from interceptor-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AuthorizationInterceptorImpl
public AuthorizationInterceptorImpl(@NotNull SecurityContextEx securityContext, @NotNull CSRFFilter csrfFilter, @NotNull AuthorizationPaths authorizationPaths)
-
-
Method Detail
-
addPathNotRequiringAuth
public void addPathNotRequiringAuth(@NotNull String path)
Adds path that does not require authentication check.- Specified by:
addPathNotRequiringAuth
in interfaceAuthorizationInterceptor
- Parameters:
path
- a path
-
addPathNotRequiringAuth
public void addPathNotRequiringAuth(@NotNull Class<?> handlerType, @NotNull String path)
Adds path associated wit particular handler class that does not require authentication check.- Specified by:
addPathNotRequiringAuth
in interfaceAuthorizationInterceptor
- Parameters:
handlerType
- a handler class that does not require authentication for provided path (in case handlerType is null, provided pass will be associated with all handlers).path
- a path.
-
addPathBasedPermissionsChecker
public void addPathBasedPermissionsChecker(@NotNull String requestPath, @NotNull RequestPermissionsChecker checker)
Description copied from interface:AuthorizationInterceptor
Adds new request permissions checker.- Specified by:
addPathBasedPermissionsChecker
in interfaceAuthorizationInterceptor
- Parameters:
requestPath
- 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
public void removePathBasePermissionsChecker(@NotNull String requestPath, @NotNull RequestPermissionsChecker checker)
Description copied from interface:AuthorizationInterceptor
Removes permissions checker from interceptor- Specified by:
removePathBasePermissionsChecker
in interfaceAuthorizationInterceptor
-
-