Examples of loginToken()


Examples of tigase.xmpp.XMPPResourceConnection.loginToken()

          }
          String token = (String)conn.getSessionData(TOKEN);
          String xmpp_sessionId = conn.getSessionId();
          Authorization auth_res = null;
          try {
            auth_res = conn.loginToken(xmpp_sessionId, token);
          } catch (Exception e) {
            log.log(Level.WARNING, "Token authentication unsuccessful.", e);
            auth_res = Authorization.NOT_AUTHORIZED;
          }
          if (auth_res == Authorization.AUTHORIZED) {
View Full Code Here

Examples of tigase.xmpp.XMPPResourceConnection.loginToken()

              String hostname = JIDUtils.getNodeHost(user_jid);
              connection = createUserSession(pc.getElemFrom(), hostname, user_jid);
              connection.setSessionId("USER_STATUS");
              user_repository.setData(JIDUtils.getNodeID(user_jid), "tokens",
                "USER_STATUS", "USER_STATUS");
              connection.loginToken("USER_STATUS", "USER_STATUS");
              handleLogin(user_jid, connection);
              connection.putSessionData("jingle", "active");
              addOutPacket(pc.okResult((String)null, 0));
              if (presence == null) {
                presence =
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.