Package org.rspeer.game
Class Login
- java.lang.Object
-
- org.rspeer.game.Login
-
public class Login extends Object
-
-
Constructor Summary
Constructors Constructor Description Login()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
execute(String username, String password, String totpSecret)
Executes the login process with the specified credentials and optional TOTP secret.
-
-
-
Method Detail
-
execute
public static void execute(String username, String password, String totpSecret)
Executes the login process with the specified credentials and optional TOTP secret.The method supports two modes of login:
- Standard username and password login.
- Jagex account login (indicated by a character id starting with
*
and a session id in place of password).
- Parameters:
username
- the username for the account, or*JX_CHARACTER_ID
for a Jagex account loginpassword
- the password for the account orJX_SESSION_ID
for a Jagex account logintotpSecret
- the TOTP secret for two-factor authentication, or an empty string if not applicable
-
-