mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
31 lines
1.1 KiB
Java
31 lines
1.1 KiB
Java
package com.mojang.authlib.yggdrasil;
|
|
|
|
import com.mojang.authlib.Agent;
|
|
import com.mojang.authlib.AuthenticationService;
|
|
import com.mojang.authlib.GameProfileRepository;
|
|
import com.mojang.authlib.UserAuthentication;
|
|
import com.mojang.authlib.minecraft.MinecraftSessionService;
|
|
import pro.gravit.utils.helper.LogHelper;
|
|
|
|
import java.net.Proxy;
|
|
|
|
public class YggdrasilAuthenticationService implements AuthenticationService {
|
|
public YggdrasilAuthenticationService(Proxy proxy, String clientToken) {
|
|
LogHelper.debug("Patched AuthenticationService created: '%s'", clientToken);
|
|
}
|
|
|
|
@Override
|
|
public MinecraftSessionService createMinecraftSessionService() {
|
|
return new YggdrasilMinecraftSessionService(this);
|
|
}
|
|
|
|
@Override
|
|
public GameProfileRepository createProfileRepository() {
|
|
return new YggdrasilGameProfileRepository();
|
|
}
|
|
|
|
@Override
|
|
public UserAuthentication createUserAuthentication(Agent agent) {
|
|
throw new UnsupportedOperationException("createUserAuthentication is used only by Mojang Launcher");
|
|
}
|
|
}
|