Java 类org.springframework.security.core.session.SessionDestroyedEvent 实例源码

项目:owf-security    文件:ClusteredSessionRegistryImpl.java   
@Override
public void onApplicationEvent(SessionDestroyedEvent event) {
    logger.debug("onApplicationEvent");
    if (event instanceof HttpSessionDestroyedEvent) {
        String sessionId = ((HttpSession) event.getSource()).getId();
        removeSessionInformation(sessionId);
    }
}
项目:esup-dematec    文件:LogoutListener.java   
@Override
@Transactional
public void onApplicationEvent(SessionDestroyedEvent event)
{
    List<SecurityContext> lstSecurityContext = event.getSecurityContexts();
    UserDetails ud;
    for (SecurityContext securityContext : lstSecurityContext)
    {
        Authentication auth = securityContext.getAuthentication();
        returnReceiptService.sendDepotStatusIfRequired(auth);
    }
}
项目:spring-session    文件:AbstractHttpSessionListenerTests.java   
@Test
public void springSessionDestroyedTranslatedToSpringSecurityDestroyed() {
    Session session = new MapSession();

    this.publisher.publishEvent(
            new org.springframework.session.events.SessionDestroyedEvent(this,
                    session));

    assertThat(this.listener.getEvent().getId()).isEqualTo(session.getId());
}
项目:bdf2    文件:SessionRegistryImpl.java   
public void onApplicationEvent(SessionDestroyedEvent event) {
    String sessionId = event.getId();
    removeSessionInformation(sessionId);
}
项目:spring-session    文件:AbstractHttpSessionListenerTests.java   
@Override
public void onApplicationEvent(SessionDestroyedEvent event) {
    this.event = event;
}
项目:spring-session    文件:AbstractHttpSessionListenerTests.java   
public SessionDestroyedEvent getEvent() {
    return this.event;
}
项目:launchkey-java    文件:SessionDestroyedEventHandler.java   
@Override public void onApplicationEvent(SessionDestroyedEvent event) {
    logout(event.getId());
}