Examples of expireNow()


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

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

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

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

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

    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

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

    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

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

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

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

Examples of org.beangle.security.monitor.OnlineActivity.expireNow()

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

    leastRecentlyUsed.expireNow();
    return true;
  }

  public boolean checkAuthenticationAllowed(Authentication request)
      throws AuthenticationException {
View Full Code Here

Examples of org.springframework.security.core.session.SessionInformation.expireNow()

                    || session.getLastRequest().before(leastRecentlyUsed.getLastRequest())) {
                leastRecentlyUsed = session;
            }
        }

        leastRecentlyUsed.expireNow();
    }

    /**
     * Sets the <tt>exceptionIfMaximumExceeded</tt> property, which determines
     * whether the user should be prevented from opening more sessions than
View Full Code Here

Examples of org.springframework.security.core.session.SessionInformation.expireNow()

                    || session.getLastRequest().before(leastRecentlyUsed.getLastRequest())) {
                leastRecentlyUsed = session;
            }
        }

        leastRecentlyUsed.expireNow();
    }

    /**
     * Sets the <tt>exceptionIfMaximumExceeded</tt> property, which determines whether the user should be prevented
     * from opening more sessions than allowed. If set to <tt>true</tt>, a <tt>SessionAuthenticationException</tt>
View Full Code Here

Examples of org.springframework.security.core.session.SessionInformation.expireNow()

        assertEquals(2, sessions.size());
        assertTrue(contains(sessionId2, principal));

        // Expire one session
        SessionInformation session = sessionRegistry.getSessionInformation(sessionId2);
        session.expireNow();

        // Check retrieval still correct
        assertTrue(sessionRegistry.getSessionInformation(sessionId2).isExpired());
        assertFalse(sessionRegistry.getSessionInformation(sessionId1).isExpired());
    }
View Full Code Here

Examples of org.springframework.security.core.session.SessionInformation.expireNow()

                    || sessions.get(i).getLastRequest().before(leastRecentlyUsed.getLastRequest())) {
                leastRecentlyUsed = sessions.get(i);
            }
        }

        leastRecentlyUsed.expireNow();
    }

    @Override
    protected void onSessionChange(String originalSessionId, HttpSession newSession, Authentication auth) {
        // Update the session registry
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.