Package uk.co.thomasc.steamkit.types.keyvalue

Examples of uk.co.thomasc.steamkit.types.keyvalue.KeyValue


    System.arraycopy(callback.getLoginKey().getBytes(), 0, loginKey, 0, callback.getLoginKey().length());

    // aes encrypt the loginkey with our session key
    final byte[] cryptedLoginKey = CryptoHelper.SymmetricEncrypt(loginKey, sessionKey);

    KeyValue authResult;

    try {
      authResult = userAuth.authenticateUser(String.valueOf(steamClient.getSteamId().convertToLong()), WebHelpers.UrlEncode(cryptedSessionKey), WebHelpers.UrlEncode(cryptedLoginKey), "POST");
    } catch (final Exception e) {
      return false;
    }

    token = authResult.get("token").asString();

    return true;
  }
View Full Code Here

TOP

Related Classes of uk.co.thomasc.steamkit.types.keyvalue.KeyValue

Copyright © 2018 www.massapicom. 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.