Java 类org.springframework.security.web.authentication.session.ConcurrentSessionControlStrategy 实例源码

项目:coj-web    文件:SecurityConfiguration.java   
@Bean
public ConcurrentSessionControlStrategy concurrentSessionControlStrategy(){
    ConcurrentSessionControlStrategy bean = new ConcurrentSessionControlStrategy(cojSessionRegistryImpl);
    bean.setMaximumSessions(3);
    bean.setExceptionIfMaximumExceeded(true);
    return bean;
}