Package crow.game.omnisrv
Class InMemoryPendingAuthCollection
java.lang.Object
crow.game.omnisrv.InMemoryPendingAuthCollection
- All Implemented Interfaces:
PendingAuthCollection
An in-memory implementation of
PendingAuthCollection, responsible for generating auth
tokens and keeping them around/expunging them when they are no longer needed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPendingAuth(PendingAuthToken token, int userID) Check if the account has a pending authentication.protected PendingAuthTokensavePendingAuth(int userID, Duration expirationTime) Save the pending authentication details, so when the char server asks the login server if we are expecting this connection, we can respond accordingly.
-
Constructor Details
-
InMemoryPendingAuthCollection
public InMemoryPendingAuthCollection()
-
-
Method Details
-
generateToken
-
savePendingAuth
Description copied from interface:PendingAuthCollectionSave the pending authentication details, so when the char server asks the login server if we are expecting this connection, we can respond accordingly.- Specified by:
savePendingAuthin interfacePendingAuthCollection- Parameters:
userID- The account IDexpirationTime- The time to live
-
checkPendingAuth
Description copied from interface:PendingAuthCollectionCheck if the account has a pending authentication.- Specified by:
checkPendingAuthin interfacePendingAuthCollectionuserID- the account id to check- Returns:
- true if it does, false otherwise.
-