public class JsonPayloadAuthenticationFilter
extends org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter
SPRING_SECURITY_FORM_PASSWORD_KEY, SPRING_SECURITY_FORM_USERNAME_KEY| Constructor and Description |
|---|
JsonPayloadAuthenticationFilter(String usernamePath,
String passwordPath)
json path should in format of (JsonPath)[https://github.com/json-path/JsonPath]
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setPasswordPath(String passwordPath) |
void |
setUsernamePath(String usernamePath) |
getPasswordParameter, getUsernameParameter, obtainPassword, obtainUsername, setDetails, setPasswordParameter, setPostOnly, setUsernameParameterafterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthenticationpublic JsonPayloadAuthenticationFilter(String usernamePath, String passwordPath)
usernamePath - json path of payload for usernamepasswordPath - json path of payload for passwordpublic org.springframework.security.core.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.core.AuthenticationException
attemptAuthentication in class org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilterorg.springframework.security.core.AuthenticationExceptionpublic void setUsernamePath(String usernamePath)
public void setPasswordPath(String passwordPath)
Copyright © 2020. All rights reserved.