Class MemoryAuthCoreProvider
java.lang.Object
pro.gravit.launchserver.auth.core.AuthCoreProvider
pro.gravit.launchserver.auth.core.MemoryAuthCoreProvider
- All Implemented Interfaces:
AutoCloseable, AuthSupportSudo, Reconfigurable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class AuthCoreProvider
AuthCoreProvider.OAuthAccessTokenExpired, AuthCoreProvider.PasswordVerifyReportModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class AuthCoreProvider
pair, providers, serverModifier and TypeFieldDescriptionprotected AuthProviderPairstatic final pro.gravit.utils.ProviderMap<AuthCoreProvider> protected LaunchServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorize(String login, AuthResponse.AuthContext context, pro.gravit.launcher.base.request.auth.AuthRequest.AuthPasswordInterface password, boolean minecraftAccess) checkServer(Client client, String username, String serverID) voidclose()List<pro.gravit.launcher.base.events.request.GetAvailabilityAuthRequestEvent.AuthAvailabilityDetails> getDetails(Client client) getUserByUsername(String username) getUserByUUID(UUID uuid) getUserSessionByOAuthAccessToken(String accessToken) booleanrefreshAccessToken(String refreshToken, AuthResponse.AuthContext context) Methods inherited from class AuthCoreProvider
authorize, getCommands, getUserByLogin, init, isSupport, registerProviders, verifyAuthModifier and TypeMethodDescriptionauthorize(User user, AuthResponse.AuthContext context, pro.gravit.launcher.base.request.auth.AuthRequest.AuthPasswordInterface password, boolean minecraftAccess) Gets a list of commands available for this object.getUserByLogin(String login) voidinit(LaunchServer server, AuthProviderPair pair) <T> Tstatic voidvoidverifyAuth(AuthResponse.AuthContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Reconfigurable
defaultCommandsMapModifier and TypeMethodDescription
-
Constructor Details
-
MemoryAuthCoreProvider
public MemoryAuthCoreProvider()
-
-
Method Details
-
getUserByUsername
- Specified by:
getUserByUsernamein classAuthCoreProvider
-
getDetails
public List<pro.gravit.launcher.base.events.request.GetAvailabilityAuthRequestEvent.AuthAvailabilityDetails> getDetails(Client client) - Overrides:
getDetailsin classAuthCoreProvider
-
getUserByUUID
- Specified by:
getUserByUUIDin classAuthCoreProvider
-
getUserSessionByOAuthAccessToken
- Specified by:
getUserSessionByOAuthAccessTokenin classAuthCoreProvider
-
refreshAccessToken
public AuthManager.AuthReport refreshAccessToken(String refreshToken, AuthResponse.AuthContext context) - Specified by:
refreshAccessTokenin classAuthCoreProvider
-
authorize
public AuthManager.AuthReport authorize(String login, AuthResponse.AuthContext context, pro.gravit.launcher.base.request.auth.AuthRequest.AuthPasswordInterface password, boolean minecraftAccess) throws IOException - Specified by:
authorizein classAuthCoreProvider- Throws:
IOException
-
checkServer
- Specified by:
checkServerin classAuthCoreProvider
-
joinServer
public boolean joinServer(Client client, String username, UUID uuid, String accessToken, String serverID) - Specified by:
joinServerin classAuthCoreProvider
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAuthCoreProvider
-
sudo
- Specified by:
sudoin interfaceAuthSupportSudo- Throws:
IOException
-