Package com.atlauncher.data.mojang.auth

Examples of com.atlauncher.data.mojang.auth.RefreshRequest


    public static AuthenticationResponse refreshAccessToken(Account account) {
        Gson gson = new Gson();
        StringBuilder response = null;
        try {
            URL url = new URL("https://authserver.mojang.com/refresh");
            String request = gson.toJson(new RefreshRequest(account.getAccessToken(), account.getClientToken()));
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();

            connection.setConnectTimeout(15000);
            connection.setReadTimeout(15000);
            connection.setRequestMethod("POST");
View Full Code Here

TOP

Related Classes of com.atlauncher.data.mojang.auth.RefreshRequest

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.