Class AccessTokenAuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
- org.craftercms.studio.impl.v2.security.authentication.token.AccessTokenAuthenticationFilter
-
- All Implemented Interfaces:
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.core.env.EnvironmentCapable
,org.springframework.web.context.ServletContextAware
public class AccessTokenAuthenticationFilter extends org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
Implementation ofAbstractPreAuthenticatedProcessingFilter
to support token authentication- Since:
- 4.0
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected AccessTokenService
accessTokenService
static String
TOKEN_PREFIX
-
Constructor Summary
Constructors Constructor Description AccessTokenAuthenticationFilter(AccessTokenService accessTokenService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)
protected Object
getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
afterPropertiesSet, doFilter, getAuthenticationDetailsSource, principalChanged, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationFailureHandler, setAuthenticationManager, setAuthenticationSuccessHandler, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, setRequiresAuthenticationRequestMatcher, setSecurityContextHolderStrategy, setSecurityContextRepository, successfulAuthentication, unsuccessfulAuthentication
-
-
-
-
Field Detail
-
TOKEN_PREFIX
public static final String TOKEN_PREFIX
- See Also:
- Constant Field Values
-
accessTokenService
protected AccessTokenService accessTokenService
-
-
Constructor Detail
-
AccessTokenAuthenticationFilter
@ConstructorProperties("accessTokenService") public AccessTokenAuthenticationFilter(AccessTokenService accessTokenService)
-
-
Method Detail
-
getPreAuthenticatedPrincipal
protected Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)
- Specified by:
getPreAuthenticatedPrincipal
in classorg.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
getPreAuthenticatedCredentials
protected Object getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)
- Specified by:
getPreAuthenticatedCredentials
in classorg.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
-