Class AbstractAuthFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- de.adorsys.ledgers.oba.rest.server.auth.oba.AbstractAuthFilter
-
- 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.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
- Direct Known Subclasses:
LoginAuthenticationFilter,TokenAuthenticationFilter
public abstract class AbstractAuthFilter extends org.springframework.web.filter.OncePerRequestFilter
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanauthenticationIsRequired()protected voidfillSecurityContext(de.adorsys.ledgers.middleware.api.domain.um.BearerTokenTO token)protected voidhandleAuthenticationFailure(javax.servlet.http.HttpServletResponse response, Exception e)protected StringobtainFromHeader(javax.servlet.http.HttpServletRequest request, String headerKey)-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterInternal, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Method Detail
-
handleAuthenticationFailure
protected void handleAuthenticationFailure(javax.servlet.http.HttpServletResponse response, Exception e) throws IOException- Throws:
IOException
-
obtainFromHeader
protected String obtainFromHeader(javax.servlet.http.HttpServletRequest request, String headerKey)
-
authenticationIsRequired
protected boolean authenticationIsRequired()
-
fillSecurityContext
protected void fillSecurityContext(de.adorsys.ledgers.middleware.api.domain.um.BearerTokenTO token)
-
-