com.mojang.authlib.yggdrasil

public class YggdrasilUserAuthentication

extends HttpUserAuthentication

All mapped superinterfaces:

UserAuthentication

com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
LOGGER
private static final String
BASE_URL
private static final URL
ROUTE_AUTHENTICATE
private static final URL
ROUTE_REFRESH
private static final URL
ROUTE_VALIDATE
private static final URL
ROUTE_INVALIDATE
private static final URL
ROUTE_SIGNOUT
private static final String
STORAGE_KEY_ACCESS_TOKEN
private final Agent
agent
private GameProfile[]
profiles
private String
accessToken
private boolean
isOnline

Constructor summary

ModifierConstructor
public (YggdrasilAuthenticationService arg0, Agent arg1)

Method summary

Modifier and TypeMethod
public boolean
canLogIn()
public void
logIn()
protected void
logInWithPassword()
protected void
updateUserProperties(User arg0)
protected void
logInWithToken()
public void
logOut()
public GameProfile[]
getAvailableProfiles()
public boolean
isLoggedIn()
public boolean
canPlayOnline()
public void
selectGameProfile(GameProfile arg0)
public void
loadFromStorage(Map<String, Object> arg0)
public Map<String, Object>
saveForStorage()
public String
getSessionToken()
public String
getAuthenticatedToken()
public Agent
getAgent()
public YggdrasilAuthenticationService
getAuthenticationService()