Class PluginMessagingProfileService
java.lang.Object
com.gamersafer.minecraft.auth.common.service.impl.profile.PluginMessagingProfileService
- All Implemented Interfaces:
IProfileService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
evict
(UserIdentity user) Removes the user from the cache.void
evictRetention
(Set<UserIdentity> onlinePlayers) Refreshes player data access times so that they do not get evicted.boolean
getLoginConfirmation
(UserIdentity identity) void
handleMessage
(GSAuthUserAuthenticationStatus status, GSAuthEventManager eventManager) boolean
hasLoginConfirmation
(UserIdentity identity) Submits a guild invite requestlogUserLogin
(String guildMemberId, UserIdentity identity) Logs a user login in the API.void
shutdown()
Properly shuts down the service.startLoginProcess
(UserIdentity identity, LoginHandler loginHandler, boolean forceVerify) submitLogReport
(ReportLog log) Submits theLogReport
to the API.Test the connection to the APISubmits a guild member verification requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.gamersafer.minecraft.auth.common.service.IProfileService
startLoginProcess
-
Constructor Details
-
PluginMessagingProfileService
public PluginMessagingProfileService(int cacheMinutes)
-
-
Method Details
-
evictRetention
Description copied from interface:IProfileService
Refreshes player data access times so that they do not get evicted.- Specified by:
evictRetention
in interfaceIProfileService
- Parameters:
onlinePlayers
- a set ofUserIdentity
that should NOT be evicted
-
testConnection
Description copied from interface:IProfileService
Test the connection to the API- Specified by:
testConnection
in interfaceIProfileService
- Returns:
- whether the connection to the API was successful
-
submitLogReport
Description copied from interface:IProfileService
Submits theLogReport
to the API.- Specified by:
submitLogReport
in interfaceIProfileService
- Parameters:
log
- theLogReport
- Returns:
- a CompletableFuture indicating submission success
-
invite
Description copied from interface:IProfileService
Submits a guild invite request- Specified by:
invite
in interfaceIProfileService
- Parameters:
uuid
- the GamerSafer guild member id- Returns:
- a QR code image in Data-URI format, or null the player does not have a GamerSafer account, the request timed out/failed
-
verify
Description copied from interface:IProfileService
Submits a guild member verification request- Specified by:
verify
in interfaceIProfileService
- Parameters:
guildMemberId
- the GamerSafer guild member id- Returns:
- the verification id of the verification
-
shutdown
public void shutdown()Description copied from interface:IProfileService
Properly shuts down the service.- Specified by:
shutdown
in interfaceIProfileService