@Singleton
public class UserSessionCacheAccessor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addLoginAttempt(java.lang.String normalizedUsername) |
java.util.Optional<java.time.Instant> |
getLastSeen(java.lang.String normalizedUsername)
Gets the time of the last activity of the given user.
|
java.lang.String |
getUserSessionId(java.lang.String normalizedUsername,
java.lang.String remoteAddress) |
boolean |
isRepeatedLoginAttempt(java.lang.String normalizedUsername) |
boolean |
removeUserSessionId(java.lang.String normalizedUsername,
java.lang.String remoteAddress) |
void |
setLastSeen(java.lang.String normalizedUsername) |
void |
setUserSessionId(java.lang.String normalizedUsername,
java.lang.String remoteAddress,
java.lang.String sessionId) |
public java.lang.String getUserSessionId(java.lang.String normalizedUsername, java.lang.String remoteAddress)
public void setUserSessionId(java.lang.String normalizedUsername, java.lang.String remoteAddress, java.lang.String sessionId)
public boolean removeUserSessionId(java.lang.String normalizedUsername, java.lang.String remoteAddress)
public boolean isRepeatedLoginAttempt(java.lang.String normalizedUsername)
public void addLoginAttempt(java.lang.String normalizedUsername)
public java.util.Optional<java.time.Instant> getLastSeen(java.lang.String normalizedUsername)
public void setLastSeen(java.lang.String normalizedUsername)