Package ch.vd.shared.iam.web.filter.auth
Class PropertiesDevLoginSpringFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- ch.vd.shared.iam.web.filter.auth.AbstractSharedIamAuthenticationFilter
-
- ch.vd.shared.iam.web.filter.auth.PropertiesDevLoginSpringFilter
-
- 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
public class PropertiesDevLoginSpringFilter extends AbstractSharedIamAuthenticationFilter
Ce filtre est nécessaire aux applications offrant des webservices pour s'assurer que la Session HTTP sera bien fermée à la fin de l'appel. Il ajoute une façade à l'objet requête. Cette facade surcharge les appels aux headers. Ce qui permet de retourner un username, un role et une application lors de l'exécution des filtres IAM qui créent le context de sécurité.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPropertiesDevLoginSpringFilter.PropertiesDevLoginRequestFacade
-
Field Summary
-
Fields inherited from class ch.vd.shared.iam.web.filter.auth.AbstractSharedIamAuthenticationFilter
IAM_AUTH_SAVED_PATH
-
-
Constructor Summary
Constructors Constructor Description PropertiesDevLoginSpringFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)voidsetProperties(java.util.Properties properties)-
Methods inherited from class ch.vd.shared.iam.web.filter.auth.AbstractSharedIamAuthenticationFilter
authenticate, getUsedPrincipal, getUsernameForLog, setAdditionalProvider
-
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
setProperties
public void setProperties(java.util.Properties properties)
-
-