Package org.beangle.security.core.session

Examples of org.beangle.security.core.session.SessionInfo.expireNow()


              .before(leastRecentlyUsed.getLastAccessAt())) {
        leastRecentlyUsed = (SessionInfo) sessions.get(i);
      }
    }

    leastRecentlyUsed.expireNow();
  }

  private void checkAuthenticationAllowed(Authentication request, HttpSession session)
      throws AuthenticationException {
    Object principal = request.getPrincipal();
View Full Code Here


  public void expire(String sessionId) {
    Sessioninfo info = getSessioninfo(sessionId);
    if (null != info) {
      controller.onLogout(info);
      info.expireNow();
      entityDao.saveOrUpdate(info);
    }
  }

  // 当会话消失时,退出用户
View Full Code Here

    remove(event.getId());
  }

  public void expire(String sessionid) {
    Sessioninfo info = getSessioninfo(sessionid);
    if (null != info) info.expireNow();
  }

  public SessionStatus getSessionStatus(String sessionid) {
    Sessioninfo info = getSessioninfo(sessionid);
    if (null == info) return null;
View Full Code Here

    remove(event.getId());
  }

  public void expire(String sessionid) {
    Sessioninfo info = getSessioninfo(sessionid);
    if (null != info) info.expireNow();
  }

  public SessionStatus getSessionStatus(String sessionid) {
    Sessioninfo info = getSessioninfo(sessionid);
    if (null == info) return null;
View Full Code Here

  public void expire(String sessionId) {
    Sessioninfo info = getSessioninfo(sessionId);
    if (null != info) {
      controller.onLogout(info);
      info.expireNow();
      entityDao.saveOrUpdate(info);
    }
  }

  // 当会话消失时,退出用户
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.