| Package | Description |
|---|---|
| com.github.steveice10.mc.auth.exception.request | |
| com.github.steveice10.mc.auth.service | |
| com.github.steveice10.mc.auth.util |
| Modifier and Type | Class and Description |
|---|---|
class |
AuthPendingException
Thrown when authorisation for a msa oauth code is still pending
|
class |
InvalidCredentialsException
Thrown when invalid credentials are provided.
|
class |
ServiceUnavailableException
Thrown when a service is unavailable.
|
class |
UserMigratedException
Thrown when using the username of an account that has been migrated to an email address.
|
class |
XboxRequestException |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MojangAuthenticationService.canMigrate()
Checks if the current profile is eligible to migrate to a Microsoft account.
|
MsaAuthenticationService.MsCodeResponse |
MsaAuthenticationService.getAuthCode()
Generate a single use code for Microsoft authentication
|
MsaAuthenticationService.MsCodeResponse |
MsaAuthenticationService.getAuthCode(boolean offlineAccess)
Generate a single use code for Microsoft authentication
|
GameProfile |
SessionService.getProfileByServer(String name,
String serverId)
Gets the profile of the given user if they are currently logged in to the given server.
|
void |
SessionService.joinServer(GameProfile profile,
String authenticationToken,
String serverId)
Joins a server.
|
abstract void |
AuthenticationService.login()
Logs the service in.
|
void |
MsaAuthenticationService.login() |
void |
MojangAuthenticationService.login() |
void |
AuthenticationService.logout()
Logs the service out.
|
void |
MsaAuthenticationService.logout() |
void |
MojangAuthenticationService.logout() |
MsaAuthenticationService.MsTokenResponse |
MsaAuthenticationService.refreshToken()
Refreshes the access token and refresh token for further use
|
void |
MojangAuthenticationService.selectGameProfile(GameProfile profile)
Selects a game profile.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
HTTP.makeRequest(Proxy proxy,
URI uri,
Object input)
Makes an HTTP request.
|
static <T> T |
HTTP.makeRequest(Proxy proxy,
URI uri,
Object input,
Class<T> responseType) |
static <T> T |
HTTP.makeRequest(Proxy proxy,
URI uri,
Object input,
Class<T> responseType,
Map<String,String> extraHeaders)
Makes an HTTP request.
|
static <T> T |
HTTP.makeRequestForm(Proxy proxy,
URI uri,
Map<String,String> input,
Class<T> responseType)
Makes an HTTP request as a from.
|
Copyright © 2023. All rights reserved.