Package org.jivesoftware.openfire.session

Examples of org.jivesoftware.openfire.session.Session.validate()


    public boolean isActiveRoute(String username, String resource) {
        boolean hasRoute = false;
        Session session = routingTable.getClientRoute(new JID(username, serverName, resource));
        // Makes sure the session is still active
        if (session != null && !session.isClosed()) {
            hasRoute = session.validate();
        }

        return hasRoute;
    }
View Full Code Here


 
  private boolean validateLocalSession(String jid, String signature) {
    Session session = sessionManager.getSession(new JID(jid));
   
    // Does a valid session exist ?
    if (session == null || !session.validate()) {
      return false;
    }
   
    // Is the session authenticated ?
    if (session.getStatus() != Session.STATUS_AUTHENTICATED) {
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.