mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-04 15:31:53 +03:00
RequestAuthHandler добавлен но не работает (да ну нахер, логично)
This commit is contained in:
parent
a540bdcf48
commit
3868f29002
1 changed files with 37 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
package ru.gravit.launchserver.auth.handler;
|
||||
|
||||
import ru.gravit.launcher.ClientPermissions;
|
||||
import ru.gravit.launchserver.LaunchServer;
|
||||
import ru.gravit.launchserver.auth.handler.AuthHandler;
|
||||
import ru.gravit.utils.helper.CommonHelper;
|
||||
import ru.gravit.utils.helper.IOHelper;
|
||||
import ru.gravit.utils.helper.LogHelper;
|
||||
import ru.gravit.utils.helper.SecurityHelper;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.util.UUID;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public final class RequestAuthHandler extends AuthHandler {
|
||||
private String url;
|
||||
private transient Pattern pattern;
|
||||
private String response;
|
||||
private String username;
|
||||
private String uuid;
|
||||
private String accessToken;
|
||||
private String serverID;
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
if (url == null) LogHelper.error("[Verify][AuthHandler] url cannot be null");
|
||||
if (response == null) LogHelper.error("[Verify][AuthHandler] response cannot be null");
|
||||
pattern = Pattern.compile(response);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue