org.springframework.security.oauth2.provider.client
类 ClientCredentialsTokenEndpointFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
org.springframework.security.oauth2.provider.client.ClientCredentialsTokenEndpointFilter
- 所有已实现的接口:
- 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 ClientCredentialsTokenEndpointFilter
- extends org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter
A filter and authentication endpoint for the OAuth2 Token Endpoint. Allows clients to authenticate using request
parameters if included as a security filter, as permitted by the specification (but not recommended). It is
recommended by the specification that you permit HTTP basic authentication for clients, and not use this filter at
all.
- 作者:
- Dave Syer
| 从类 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 继承的字段 |
authenticationDetailsSource, eventPublisher, messages, SPRING_SECURITY_LAST_EXCEPTION_KEY |
| 从类 org.springframework.web.filter.GenericFilterBean 继承的字段 |
logger |
|
方法摘要 |
void |
afterPropertiesSet()
|
org.springframework.security.core.Authentication |
attemptAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected boolean |
requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
|
protected void |
successfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
org.springframework.security.core.Authentication authResult)
|
| 从类 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 继承的方法 |
doFilter, getAllowSessionCreation, getAuthenticationManager, getFailureHandler, getFilterProcessesUrl, getRememberMeServices, getSuccessHandler, setAllowSessionCreation, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setContinueChainBeforeSuccessfulAuthentication, setFilterProcessesUrl, setMessageSource, setRememberMeServices, setSessionAuthenticationStrategy, successfulAuthentication, unsuccessfulAuthentication |
| 从类 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 |
ClientCredentialsTokenEndpointFilter
public ClientCredentialsTokenEndpointFilter()
ClientCredentialsTokenEndpointFilter
public ClientCredentialsTokenEndpointFilter(String path)
setAuthenticationEntryPoint
public void setAuthenticationEntryPoint(org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint)
- 参数:
authenticationEntryPoint - the authentication entry point to set
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
successfulAuthentication
protected void successfulAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain,
org.springframework.security.core.Authentication authResult)
throws IOException,
javax.servlet.ServletException
- 覆盖:
- 类
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 中的 successfulAuthentication
- 抛出:
IOException
javax.servlet.ServletException
requiresAuthentication
protected boolean requiresAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- 覆盖:
- 类
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter 中的 requiresAuthentication
Copyright © 2013. All rights reserved.