Example usage for org.springframework.security.web.context SecurityContextPersistenceFilter afterPropertiesSet

List of usage examples for org.springframework.security.web.context SecurityContextPersistenceFilter afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.security.web.context SecurityContextPersistenceFilter afterPropertiesSet.

Prototype

@Override
public void afterPropertiesSet() throws ServletException 

Source Link

Document

Calls the initFilterBean() method that might contain custom initialization of a subclass.

Usage

From source file:nu.localhost.tapestry5.springsecurity.services.SecurityModule.java

@Marker(SpringSecurityServices.class)
public static HttpServletRequestFilter buildHttpSessionContextIntegrationFilter() throws Exception {

    SecurityContextPersistenceFilter filter = new SecurityContextPersistenceFilter();
    filter.setForceEagerSessionCreation(false);
    filter.afterPropertiesSet();
    return new HttpServletRequestFilterWrapper(filter);
}

From source file:ch.astina.hesperid.web.services.SecurityModule.java

/**
 * Provides the SecurityContext through the SecurityContextHolder
 *///from w w  w .ja v  a2 s  .co  m
@Marker(SpringSecurityServices.class)
public static HttpServletRequestFilter buildHttpSessionContextIntegrationFilter() throws Exception {

    SecurityContextPersistenceFilter filter = new SecurityContextPersistenceFilter();
    filter.setForceEagerSessionCreation(false);
    filter.afterPropertiesSet();
    return new HttpServletRequestFilterWrapper(filter);
}