Class ConnectionHandler

java.lang.Object
net.minheur.potoflux.login.ConnectionHandler

public class ConnectionHandler extends Object
Handles all things related to connecting you to your account, disconnecting you, and keeping your account
It synchronizes multiple other classes to do so
  • Field Details

    • account

      public static Account account
    • isLogged

      public static boolean isLogged
    • isAccountCreationEnabled

      public static boolean isAccountCreationEnabled
  • Constructor Details

    • ConnectionHandler

      public ConnectionHandler()
  • Method Details

    • logWith

      public static void logWith(String email, String password)
    • accountFor

      public static void accountFor(String token)
    • fillPerms

      public static Perms[] fillPerms(String[] perms)
    • getToken

      @Nullable public static String getToken(String email, String password)
    • reloadAccountCreationPermission

      public static void reloadAccountCreationPermission()
    • sendAccountCreationLockRequest

      public static void sendAccountCreationLockRequest(boolean isAllowed)
    • checkAndRemoveExistingToken

      public static void checkAndRemoveExistingToken()
    • performAuthAction

      public static void performAuthAction()
    • reloadAuthUi

      public static void reloadAuthUi()
    • logout

      public static void logout()
    • login

      public static void login()
    • getAuthButtonStatus

      public static String getAuthButtonStatus()