- 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:
- QwacCertificateFilterMock
@Profile(value="default")
@Component
public class QwacCertificateFilter
extends org.springframework.web.filter.GenericFilterBean
The intent of this Class is to get the Qwac certificate from header, extract the information inside
and set an Authentication Object with extracted data and roles,
thus we can use a SecurityConfig extends WebSecurityConfigurerAdapter to filter path by role.
And a SecurityUtil class have been implemented to get this TPP data everywhere.