org.springframework.security.oauth2.client.filter
类 OAuth2ClientAuthenticationProcessingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
org.springframework.security.oauth2.client.filter.OAuth2ClientAuthenticationProcessingFilter
- 所有已实现的接口:
- 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.web.context.ServletContextAware
public class OAuth2ClientAuthenticationProcessingFilter
- extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
An OAuth2 client filter that can be used to acquire an OAuth2 access token from an authorization server, and load an
authentication object into the SecurityContext
- 作者:
- Vidya Valmikinathan
| 从类 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 继承的字段 |
authenticationDetailsSource, eventPublisher, messages, SPRING_SECURITY_LAST_EXCEPTION_KEY |
| 从类 org.springframework.web.filter.GenericFilterBean 继承的字段 |
logger |
| 从类 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 继承的方法 |
doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getFilterProcessesUrl, getRememberMeServices, getSuccessHandler, requiresAuthentication, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setSessionAuthenticationStrategy, successfulAuthentication, successfulAuthentication |
| 从类 org.springframework.web.filter.GenericFilterBean 继承的方法 |
addRequiredProperty, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
restTemplate
public OAuth2RestOperations restTemplate
OAuth2ClientAuthenticationProcessingFilter
public OAuth2ClientAuthenticationProcessingFilter(String defaultFilterProcessesUrl)
setTokenServices
public void setTokenServices(ResourceServerTokenServices tokenServices)
- Reference to a CheckTokenServices that can validate an OAuth2AccessToken
- 参数:
tokenServices -
setRestTemplate
public void setRestTemplate(OAuth2RestOperations restTemplate)
- A rest template to be used to obtain an access token.
- 参数:
restTemplate - a rest template
afterPropertiesSet
public void afterPropertiesSet()
- 指定者:
- 接口
org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet - 覆盖:
- 类
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 中的 afterPropertiesSet
attemptAuthentication
public org.springframework.security.core.Authentication attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws org.springframework.security.core.AuthenticationException,
IOException,
javax.servlet.ServletException
- 指定者:
- 类
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 中的 attemptAuthentication
- 抛出:
org.springframework.security.core.AuthenticationException
IOException
javax.servlet.ServletException
unsuccessfulAuthentication
protected void unsuccessfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException failed)
throws IOException,
javax.servlet.ServletException
- 覆盖:
- 类
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 中的 unsuccessfulAuthentication
- 抛出:
IOException
javax.servlet.ServletException
Copyright © 2013. All rights reserved.