Class AuthenticationServerBase.TokenEntryList

java.lang.Object
com.illumon.iris.auth.AuthenticationServerBase.TokenEntryList
Enclosing class:
AuthenticationServerBase

protected class AuthenticationServerBase.TokenEntryList extends Object
Linked list to help when scanning for expired tokens. The AuthenticationServerBase.TokenEntry objects will be added in order of when they are created, so expired token scan can start at the head and stop when it finds a token that is not expired. TokenEntry objects are also removed in AuthenticationServerBase.isTokenValid(String, AuthToken) and those tokens may be anywhere in this list. A LinkedList would work but TokenEntry removals would be O(n), whereas any random token will be removed from this list in O(1) by calling detach(TokenEntry).