org.springframework.security.oauth2.provider.authentication
类 OAuth2AuthenticationProcessingFilter
java.lang.Object
org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter
- 所有已实现的接口:
- javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
public class OAuth2AuthenticationProcessingFilter
- extends Object
- implements javax.servlet.Filter, org.springframework.beans.factory.InitializingBean
A pre-authentication filter for OAuth2 protected resources. Extracts an OAuth2 token from the incoming request and
uses it to populate the Spring Security context with an OAuth2Authentication (if used in conjunction with an
OAuth2AuthenticationManager).
- 作者:
- Dave Syer
|
方法摘要 |
void |
afterPropertiesSet()
|
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
protected String |
parseHeaderToken(javax.servlet.http.HttpServletRequest request)
Parse the OAuth header parameters. |
protected String |
parseToken(javax.servlet.http.HttpServletRequest request)
|
void |
setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
|
void |
setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
|
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
|
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2AuthenticationProcessingFilter
public OAuth2AuthenticationProcessingFilter()
setAuthenticationEntryPoint
public void setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
- 参数:
authenticationEntryPoint - the authentication entry point to set
setAuthenticationManager
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager authenticationManager)
- 参数:
authenticationManager - the authentication manager to set (mandatory with no default)
setAuthenticationDetailsSource
public void setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource<javax.servlet.http.HttpServletRequest,?> authenticationDetailsSource)
- 参数:
authenticationDetailsSource - The AuthenticationDetailsSource to use
afterPropertiesSet
public void afterPropertiesSet()
- 指定者:
- 接口
org.springframework.beans.factory.InitializingBean 中的 afterPropertiesSet
doFilter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- 指定者:
- 接口
javax.servlet.Filter 中的 doFilter
- 抛出:
IOException
javax.servlet.ServletException
parseToken
protected String parseToken(javax.servlet.http.HttpServletRequest request)
parseHeaderToken
protected String parseHeaderToken(javax.servlet.http.HttpServletRequest request)
- Parse the OAuth header parameters. The parameters will be oauth-decoded.
- 参数:
request - The request.
- 返回:
- The parsed parameters, or null if no OAuth authorization header was supplied.
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- 指定者:
- 接口
javax.servlet.Filter 中的 init
- 抛出:
javax.servlet.ServletException
destroy
public void destroy()
- 指定者:
- 接口
javax.servlet.Filter 中的 destroy
Copyright © 2013. All rights reserved.