Class APIKeyAuthFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
- de.trustable.ca3s.core.security.apikey.APIKeyAuthFilter
-
- 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 APIKeyAuthFilter extends org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
-
Constructor Summary
Constructors Constructor Description APIKeyAuthFilter(String principalRequestHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)protected ObjectgetPreAuthenticatedPrincipal(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, setSecurityContextRepository, successfulAuthentication, unsuccessfulAuthentication
-
-
-
-
Constructor Detail
-
APIKeyAuthFilter
public APIKeyAuthFilter(String principalRequestHeader)
-
-
Method Detail
-
getPreAuthenticatedPrincipal
protected Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)
- Specified by:
getPreAuthenticatedPrincipalin classorg.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
getPreAuthenticatedCredentials
protected Object getPreAuthenticatedCredentials(javax.servlet.http.HttpServletRequest request)
- Specified by:
getPreAuthenticatedCredentialsin classorg.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
-