public class OpenIdAuthenticationFilter
extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
| 构造器和说明 |
|---|
OpenIdAuthenticationFilter() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.core.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getOpenIdParameter() |
String |
getProviderIdParameter() |
protected String |
obtainOpenId(javax.servlet.http.HttpServletRequest request)
获取openId
|
protected String |
obtainProviderId(javax.servlet.http.HttpServletRequest request)
获取提供商id
|
protected void |
setDetails(javax.servlet.http.HttpServletRequest request,
OpenIdAuthenticationToken authRequest)
Provided so that subclasses may configure what is put into the
authentication request's details property.
|
void |
setOpenIdParameter(String openIdParameter)
Sets the parameter name which will be used to obtain the username from
the login request.
|
void |
setPostOnly(boolean postOnly)
Defines whether only HTTP POST requests will be allowed by this filter.
|
void |
setProviderIdParameter(String providerIdParameter) |
afterPropertiesSet, doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setRequiresAuthenticationRequestMatcher, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthenticationpublic org.springframework.security.core.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.core.AuthenticationException
attemptAuthentication 在类中 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilterorg.springframework.security.core.AuthenticationExceptionprotected String obtainOpenId(javax.servlet.http.HttpServletRequest request)
protected String obtainProviderId(javax.servlet.http.HttpServletRequest request)
protected void setDetails(javax.servlet.http.HttpServletRequest request,
OpenIdAuthenticationToken authRequest)
request - that an authentication request is being created forauthRequest - the authentication request object that should have its details
setpublic void setOpenIdParameter(String openIdParameter)
usernameParameter - the parameter name. Defaults to "username".public void setPostOnly(boolean postOnly)
Defaults to true but may be overridden by subclasses.
public final String getOpenIdParameter()
public String getProviderIdParameter()
public void setProviderIdParameter(String providerIdParameter)
Copyright © 2018. All rights reserved.