Class Authenticator

java.lang.Object
com.zenith.network.client.Authenticator

public class Authenticator extends Object
  • Field Details

    • INSTANCE

      public static final Authenticator INSTANCE
    • AUTH_CACHE_FILE

      public static final File AUTH_CACHE_FILE
  • Constructor Details

    • Authenticator

      public Authenticator()
  • Method Details

    • clearAuthCache

      public void clearAuthCache()
    • login

      public MinecraftProtocol login()
      Login Sequence: 1. Load auth cache 2. If auth cache is present, attempt to refresh until refreshTryCount limit is reached 2a. If refreshTryCount limit is reached, wipe cache and full login 3. If auth cache is not present, full login caller process will stop login attempts after 3 tries so the auth cache wipe could happen before or after that is reached depending on config
    • tryRefresh

      public Optional<net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession> tryRefresh(net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession session)
    • getAuthStep

      public net.raphimc.minecraftauth.step.java.session.StepFullJavaSession getAuthStep()
    • fullLogin

      public net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession fullLogin()
    • saveAuthCache

      public void saveAuthCache(net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession session)
    • updateConfig

      public void updateConfig(net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession javaSession)
    • saveAuthCacheAsync

      public void saveAuthCacheAsync(net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession session)
    • loadAuthCache

      public Optional<net.raphimc.minecraftauth.step.java.session.StepFullJavaSession.FullJavaSession> loadAuthCache()
    • createHttpClient

      public net.lenni0451.commons.httpclient.HttpClient createHttpClient()
    • getRefreshTask

      public ScheduledFuture<?> getRefreshTask()
    • getRefreshTryCount

      public int getRefreshTryCount()
    • getDeviceCodeAuthStep

      public net.raphimc.minecraftauth.step.java.session.StepFullJavaSession getDeviceCodeAuthStep()
    • getDeviceCodeAuthWithoutDeviceTokenStep

      public net.raphimc.minecraftauth.step.java.session.StepFullJavaSession getDeviceCodeAuthWithoutDeviceTokenStep()
    • getMsaAuthStep

      public net.raphimc.minecraftauth.step.java.session.StepFullJavaSession getMsaAuthStep()
    • getPrismDeviceCodeAuthStep

      public net.raphimc.minecraftauth.step.java.session.StepFullJavaSession getPrismDeviceCodeAuthStep()