Class RequestAuthHandler
java.lang.Object
pro.gravit.launchserver.auth.handler.AuthHandler
pro.gravit.launchserver.auth.handler.CachedAuthHandler
pro.gravit.launchserver.auth.handler.RequestAuthHandler
- All Implemented Interfaces:
AutoCloseable,pro.gravit.launcher.NeedGarbageCollection,Reconfigurable
-
Nested Class Summary
Nested classes/interfaces inherited from class pro.gravit.launchserver.auth.handler.CachedAuthHandler
CachedAuthHandler.Entry, CachedAuthHandler.EntryAndUsername -
Field Summary
Fields inherited from class pro.gravit.launchserver.auth.handler.AuthHandler
providers, srv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected CachedAuthHandler.EntryfetchEntry(String username)protected CachedAuthHandler.EntryfetchEntry(UUID uuid)voidinit(LaunchServer srv)protected booleanupdateAuth(UUID uuid, String username, String accessToken)protected booleanupdateServerID(UUID uuid, String serverID)Methods inherited from class pro.gravit.launchserver.auth.handler.CachedAuthHandler
addEntry, auth, checkServer, garbageCollection, getCommands, getEntryCache, getUsernamesCache, joinServer, loadEntryCache, loadUsernameCache, usernameToUUID, uuidToUsernameMethods inherited from class pro.gravit.launchserver.auth.handler.AuthHandler
authError, registerHandlersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.gravit.launchserver.Reconfigurable
defaultCommandsMap
-
Constructor Details
-
RequestAuthHandler
public RequestAuthHandler()
-
-
Method Details
-
init
- Overrides:
initin classAuthHandler
-
fetchEntry
- Specified by:
fetchEntryin classCachedAuthHandler- Throws:
IOException
-
fetchEntry
- Specified by:
fetchEntryin classCachedAuthHandler- Throws:
IOException
-
updateAuth
- Specified by:
updateAuthin classCachedAuthHandler- Throws:
IOException
-
updateServerID
- Specified by:
updateServerIDin classCachedAuthHandler- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAuthHandler
-