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 voidaddPathBasedPermissionsChecker(String requestPath, RequestPermissionsChecker checker)Adds new request permissions checker.voidaddPathNotRequiringAuth(Class<?> handlerType, String path)Adds path associated wit particular handler class that does not require authentication check.voidaddPathNotRequiringAuth(String path)Adds path that does not require authentication check.booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)voidremovePathBasePermissionsChecker(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:
addPathNotRequiringAuthin 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:
addPathNotRequiringAuthin 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:AuthorizationInterceptorAdds new request permissions checker.- Specified by:
addPathBasedPermissionsCheckerin 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:AuthorizationInterceptorRemoves permissions checker from interceptor- Specified by:
removePathBasePermissionsCheckerin interfaceAuthorizationInterceptor
-
-