Package hudson.security
Class AuthenticationProcessingFilter2
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
hudson.security.AuthenticationProcessingFilter2
- All Implemented Interfaces:
- jakarta.servlet.Filter,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.BeanNameAware,- org.springframework.beans.factory.DisposableBean,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.ApplicationEventPublisherAware,- org.springframework.context.EnvironmentAware,- org.springframework.context.MessageSourceAware,- org.springframework.core.env.EnvironmentCapable,- org.springframework.web.context.ServletContextAware
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class AuthenticationProcessingFilter2
extends org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
Login filter with a change for Jenkins so that
 we can pick up the hidden "from" form field defined in 
login.jelly
 to send the user back to where he came from, after a successful authentication.- Author:
- Kohsuke Kawaguchi
- 
Field SummaryFields inherited from class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilterSPRING_SECURITY_FORM_PASSWORD_KEY, SPRING_SECURITY_FORM_USERNAME_KEYFields inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterauthenticationDetailsSource, eventPublisher, messagesFields inherited from class org.springframework.web.filter.GenericFilterBeanlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidsuccessfulAuthentication(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain, org.springframework.security.core.Authentication authResult) protected voidunsuccessfulAuthentication(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException failed) Leave the information about login failure.Methods inherited from class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilterattemptAuthentication, getPasswordParameter, getUsernameParameter, obtainPassword, obtainUsername, setDetails, setPasswordParameter, setPostOnly, setUsernameParameterMethods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterafterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationConverter, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSecurityContextHolderStrategy, setSecurityContextRepository, setSessionAuthenticationStrategyMethods inherited from class org.springframework.web.filter.GenericFilterBeanaddRequiredProperty, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
- 
Constructor Details- 
AuthenticationProcessingFilter2
 
- 
- 
Method Details- 
successfulAuthenticationprotected void successfulAuthentication(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain, org.springframework.security.core.Authentication authResult) throws IOException, jakarta.servlet.ServletException - Overrides:
- successfulAuthenticationin class- org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
unsuccessfulAuthenticationprotected void unsuccessfulAuthentication(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException failed) throws IOException, jakarta.servlet.ServletException Leave the information about login failure.- Overrides:
- unsuccessfulAuthenticationin class- org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
- Throws:
- IOException
- jakarta.servlet.ServletException
 
 
-