Package crow.game.login.api
Interface PendingAuthCollection
- All Known Implementing Classes:
InMemoryPendingAuthCollection
public interface PendingAuthCollection
The pending auth collection contains pending authentications (with expirations) that the login
server stores and recalls.
We use randomly generated tokens to track specific auth requests.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckPendingAuth(PendingAuthToken token, int accountID) Check if the account has a pending authentication.savePendingAuth(int accountID, Duration ttl) Save the pending authentication details, so when the char server asks the login server if we are expecting this connection, we can respond accordingly.
-
Method Details
-
savePendingAuth
Save the pending authentication details, so when the char server asks the login server if we are expecting this connection, we can respond accordingly.- Parameters:
accountID- The account IDttl- The time to live
-
checkPendingAuth
Check if the account has a pending authentication.- Parameters:
accountID- the account id to check- Returns:
- true if it does, false otherwise.
-