Package net.runelite.client.rs.auth
Class JagexAuthService
- java.lang.Object
-
- net.runelite.client.rs.auth.JagexAuthService
-
@Singleton public class JagexAuthService extends Object
-
-
Constructor Summary
Constructors Constructor Description JagexAuthService(net.runelite.api.Client client, ClientThread clientThread, JagexAuthClient authClient, SessionStore sessionStore, com.google.gson.Gson gson, ScheduledExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account[]getAccounts(String sessionId)List<Session>getSessions()CompletableFuture<Void>loadFromStore()voidperformJagexAuthFlow()voidremoveSession(Session session)voidswitchJagexAccount(String sessionId, String sub, String displayName)
-
-
-
Constructor Detail
-
JagexAuthService
@Inject public JagexAuthService(net.runelite.api.Client client, ClientThread clientThread, JagexAuthClient authClient, SessionStore sessionStore, com.google.gson.Gson gson, ScheduledExecutorService executor)
-
-
Method Detail
-
loadFromStore
public CompletableFuture<Void> loadFromStore()
-
removeSession
public void removeSession(Session session)
-
performJagexAuthFlow
public void performJagexAuthFlow() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
-