Examples of SessionKey


Examples of com.l2jfrozen.gameserver.thread.LoginServerThread.SessionKey

  }

  @Override
  protected void runImpl()
  {
    SessionKey key = new SessionKey(_loginKey1, _loginKey2, _playKey1, _playKey2);

    if (Config.DEBUG)
      _log.info("DEBUG "+getType()+": user: " + _loginName + " key:" + key);

    L2GameClient client = getClient();
View Full Code Here

Examples of com.l2jfrozen.loginserver.SessionKey

    int playKey1 = readD();
    int playKey2 = readD();
    int loginKey1 = readD();
    int loginKey2 = readD();

    _sessionKey = new SessionKey(loginKey1, loginKey2, playKey1, playKey2);
  }
View Full Code Here

Examples of com.l2jfrozen.loginserver.SessionKey

  }
 
  @Override
  public void run()
  {
    SessionKey sk = getClient().getSessionKey();

    // if we didnt showed the license we cant check these values
    if(!Config.SHOW_LICENCE || sk.checkLoginPair(_skey1, _skey2))
    {
      if(LoginController.getInstance().isLoginPossible(getClient(), _serverId))
      {
        getClient().setJoinedGS(true);
        getClient().sendPacket(new PlayOk(sk));
View Full Code Here

Examples of com.renren.api.client.param.impl.SessionKey

        String renrenUserId = request.getParameter("xn_sig_user");
        if (sessionKey != null && renrenUserId != null) {
            request.getSession().setAttribute("session_key", sessionKey);
           
            RenrenApiClient apiClient = RenrenApiClient.getInstance();
            JSONArray userInfo = apiClient.getUserService().getInfo(renrenUserId, "name,headurl",new SessionKey(sessionKey));
            if (userInfo != null && userInfo.size() > 0) {
                JSONObject currentUser = (JSONObject) userInfo.get(0);
                if (currentUser != null) {
                    String userName = (String) currentUser.get("name");
                    String userHead = (String) currentUser.get("headurl");
                    request.getSession().setAttribute("userName", userName);
                    request.getSession().setAttribute("userHead", userHead);
                }
            }
            //获取好友列表数据
            JSONArray friendsList = apiClient.getFriendsService().getFriends(1, 30,new SessionKey(sessionKey));//最多取30个好友
            //获得安装了该应用的列表
            JSONArray appuserList=apiClient.getFriendsService().getAppUsers("tinyurl",new SessionKey(sessionKey));
            request.setAttribute("friendsList", friendsList);
            request.setAttribute("appUsersList", appuserList);
        }
        request.setAttribute("appId", RenrenApiConfig.renrenAppID);
      RequestDispatcher welcomeDispatcher = request.getRequestDispatcher("/views/home.jsp");
View Full Code Here

Examples of com.renren.api.client.param.impl.SessionKey

          if(flag.equals("local")){
              //上传本地图片
              String filename=(String)request.getParameter("filename");
              filename=new String(filename.getBytes("ISO8859-1"),"UTF-8");
              try{
                  client.getPhotoService().uploadLocalImg(0, filename, "测试上传本地图片"+new Date(),new SessionKey(sessionKey));
              }catch(RenrenApiException e){
                  e.printStackTrace();
              }
             
          }else if(flag.equals("url")){
              //上传网络图片
              String fileurl=(String)request.getParameter("fileurl");
              try{
                  client.getPhotoService().uploadURLImg(0, fileurl, "测试上传网络图片"+new Date(),new SessionKey(sessionKey));
              }catch(RenrenApiException e){
                  e.printStackTrace();
              }
          }
      }
View Full Code Here

Examples of com.sk89q.worldedit.session.SessionKey

    public void dispatchCUIEvent(CUIEvent event) {
    }

    @Override
    public SessionKey getSessionKey() {
        return new SessionKey() {
            @Nullable
            @Override
            public String getName() {
                return null;
            }
View Full Code Here

Examples of hermes.fix.SessionKey

    try {
      FIXMessage message;

      while (isRunning() && (message = reader.read()) != null) {
        nmessages++;
        SessionKey key1 = new SessionKey(message.getMessage().getHeader().getString(SenderCompID.FIELD), message.getMessage().getHeader().getString(TargetCompID.FIELD));
        SessionKey key2 = new SessionKey(message.getMessage().getHeader().getString(TargetCompID.FIELD), message.getMessage().getHeader().getString(SenderCompID.FIELD));

        FIXSessionBrowserDocumentComponent document = documents.get(key1);
       
        if (document == null) {
          document = new FIXSessionBrowserDocumentComponent(messageCache, key1);
View Full Code Here

Examples of l2p.gameserver.loginservercon.SessionKey

  }

  @Override
  public void runImpl()
  {
    SessionKey key = new SessionKey(_loginKey1, _loginKey2, _playKey1, _playKey2);
    final L2GameClient client = getClient();
    client.setSessionId(key);
    client.setLoginName(_loginName);
    if(Config.GG_CHECK)
    {
View Full Code Here

Examples of l2p.gameserver.loginservercon.SessionKey

    super(con);
    if(!offline)
    {
      _state = GameClientState.CONNECTED;
      _connection = con;
      _sessionId = new SessionKey(-1, -1, -1, -1);
      _crypt = new GameCrypt();
      if(Config.LOG_CLIENT_PACKETS || Config.LOG_SERVER_PACKETS)
      {
        pktLogger = new PacketLogger(this, Config.PACKETLOGGER_FLUSH_SIZE);
        if(Config.PACKETLOGGER_IPS != null)
View Full Code Here

Examples of l2p.gameserver.loginservercon.SessionKey

      {
        client.closeNow(true);
        log.warning("PlayerAuthResponse: empty accname for " + client);
        return;
      }
      SessionKey key = client.getSessionId();
      if(authed)
      {
        if(getLoginServer().isLicenseShown())
        {
          authed = key.playOkID1 == playOkId1 && key.playOkID2 == playOkId2 && key.loginOkID1 == loginOkId1 && key.loginOkID2 == loginOkId2;
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.