Class LoginService


  • public class LoginService
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LoginService​(ReflectionService reflectionService, net.runelite.api.Client client, net.runelite.client.callback.ClientThread clientThread)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Profile loadProfileFromCredentials()
      Loads profile credentials from the RuneLite credentials file.
      void login()
      Loads Jagex account credentials and logs into the client.
      void loginWithJagexAccount​(Profile profile, boolean doLogin)
      Logs into a Jagex account using the provided profile.
      void loginWithLegacyAccount​(java.lang.String username, java.lang.String password, boolean doLogin)
      Logs into the game client using legacy (username/password) credentials.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoginService

        @Inject
        public LoginService​(ReflectionService reflectionService,
                            net.runelite.api.Client client,
                            net.runelite.client.callback.ClientThread clientThread)
    • Method Detail

      • loadProfileFromCredentials

        public Profile loadProfileFromCredentials()
        Loads profile credentials from the RuneLite credentials file.
        Returns:
        Profile the character profile loaded from the credentials file.
      • loginWithJagexAccount

        public void loginWithJagexAccount​(Profile profile,
                                          boolean doLogin)
        Logs into a Jagex account using the provided profile.
        Parameters:
        profile - Profile containing Jagex account credentials
        doLogin - If true, triggers actual login; if false, only sets fields
      • loginWithLegacyAccount

        public void loginWithLegacyAccount​(java.lang.String username,
                                           java.lang.String password,
                                           boolean doLogin)
        Logs into the game client using legacy (username/password) credentials.
        Parameters:
        username - The username to login with
        password - The password to login with
        doLogin - If true, triggers actual login; if false, only sets fields