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 Type
    Method
    Description
    boolean
    checkPendingAuth(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

      PendingAuthToken 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.
      Parameters:
      accountID - The account ID
      ttl - The time to live
    • checkPendingAuth

      boolean checkPendingAuth(PendingAuthToken token, int accountID)
      Check if the account has a pending authentication.
      Parameters:
      accountID - the account id to check
      Returns:
      true if it does, false otherwise.