Class KeycloakSecurityContextRequestFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.keycloak.adapters.springsecurity.filter.KeycloakSecurityContextRequestFilter
-
- 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.ApplicationContextAware,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
public class KeycloakSecurityContextRequestFilter extends org.springframework.web.filter.GenericFilterBean implements org.springframework.context.ApplicationContextAware- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description KeycloakSecurityContextRequestFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain)protected voidinitFilterBean()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
initFilterBean
protected void initFilterBean()
- Overrides:
initFilterBeanin classorg.springframework.web.filter.GenericFilterBean
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-