2018-09-17 10:07:32 +03:00
|
|
|
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;
|
2018-09-17 10:20:34 +03:00
|
|
|
import ru.gravit.utils.helper.LogHelper;
|
2018-09-17 10:07:32 +03:00
|
|
|
|
2018-12-20 18:45:01 +03:00
|
|
|
import java.net.Proxy;
|
|
|
|
|
2018-09-17 10:07:32 +03:00
|
|
|
public final 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");
|
|
|
|
}
|
|
|
|
}
|