Class InsecurePasswordResetInterceptor
- java.lang.Object
-
- jetbrains.buildServer.controllers.interceptors.SkippableInterceptor
-
- jetbrains.buildServer.controllers.interceptors.InsecurePasswordResetInterceptor
-
- All Implemented Interfaces:
org.springframework.web.servlet.AsyncHandlerInterceptor
,org.springframework.web.servlet.HandlerInterceptor
public class InsecurePasswordResetInterceptor extends SkippableInterceptor
Interceptor class for handling insecure password reset requests.The interceptor responses with a redirect to /changePassword.html if the request session is marked with RESET_INSECURE_PASSWORD_REQUIRED_ATTRIBUTE attribute. This attribute is set in WebLoginModelImpl when log in request is processed and the PasswordComplexityChecker validation fails.
-
-
Constructor Summary
Constructors Constructor Description InsecurePasswordResetInterceptor(AuthorizationPaths authorizationPaths, LoginConfigurationEx loginConfiguration, PasswordComplexityPolicy passwordComplexityPolicy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
preHandleInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler)
-
Methods inherited from class jetbrains.buildServer.controllers.interceptors.SkippableInterceptor
afterCompletion, afterCompletionInternal, afterConcurrentHandlingStarted, afterConcurrentHandlingStartedInternal, isInternalInterceptorsDisabledForHandler, postHandle, postHandleInternal, preHandle
-
-
-
-
Constructor Detail
-
InsecurePasswordResetInterceptor
public InsecurePasswordResetInterceptor(@NotNull AuthorizationPaths authorizationPaths, @NotNull LoginConfigurationEx loginConfiguration, @NotNull PasswordComplexityPolicy passwordComplexityPolicy)
-
-
Method Detail
-
preHandleInternal
public boolean preHandleInternal(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, @NotNull Object handler) throws Exception
- Specified by:
preHandleInternal
in classSkippableInterceptor
- Throws:
Exception
-
-