Package com.kraken.api.service.ui.login
Class LoginService
- java.lang.Object
-
- com.kraken.api.service.ui.login.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 ProfileloadProfileFromCredentials()Loads profile credentials from the RuneLite credentials file.voidlogin()Loads Jagex account credentials and logs into the client.voidloginWithJagexAccount(Profile profile, boolean doLogin)Logs into a Jagex account using the provided profile.voidloginWithLegacyAccount(java.lang.String username, java.lang.String password, boolean doLogin)Logs into the game client using legacy (username/password) credentials.
-
-
-
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.
-
login
public void login()
Loads Jagex account credentials and logs into the client. Does NOT support legacy accounts. UseloginWithLegacyAccount(java.lang.String, java.lang.String, boolean)instead.
-
loginWithJagexAccount
public void loginWithJagexAccount(Profile profile, boolean doLogin)
Logs into a Jagex account using the provided profile.- Parameters:
profile- Profile containing Jagex account credentialsdoLogin- 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 withpassword- The password to login withdoLogin- If true, triggers actual login; if false, only sets fields
-
-