Class PhoneAuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
-
- org.oxerr.spring.security.phone.web.PhoneAuthenticationFilter
-
- All Implemented Interfaces:
javax.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
public class PhoneAuthenticationFilter extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
-
-
Field Summary
Fields Modifier and Type Field Description static String
SPRING_SECURITY_FORM_CODE_KEY
static String
SPRING_SECURITY_FORM_NUMBER_KEY
-
Constructor Summary
Constructors Constructor Description PhoneAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authentication
attemptAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
setCodeParameter(String codeParameter)
void
setNumberParameter(String numberParameter)
-
Methods inherited from class org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
afterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthentication
-
-
-
-
Field Detail
-
SPRING_SECURITY_FORM_NUMBER_KEY
public static final String SPRING_SECURITY_FORM_NUMBER_KEY
- See Also:
- Constant Field Values
-
SPRING_SECURITY_FORM_CODE_KEY
public static final String SPRING_SECURITY_FORM_CODE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
attemptAuthentication
public org.springframework.security.core.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.springframework.security.core.AuthenticationException
- Specified by:
attemptAuthentication
in classorg.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
- Throws:
org.springframework.security.core.AuthenticationException
-
setNumberParameter
public void setNumberParameter(String numberParameter)
-
setCodeParameter
public void setCodeParameter(String codeParameter)
-
-