OneTimeTokenConsumedInfo#

class OneTimeTokenConsumedInfo#

Utility class to manage OTTs: mark as consumed, removed expired OTTs, manage maximum number of replays and replay timeout of tokens.

Constructors#

OneTimeTokenConsumedInfo#

public OneTimeTokenConsumedInfo(OneTimeAuthenticationToken oneTimeAuthenticationToken)#

Methods#

cleanupConsumedInfo#

public static void cleanupConsumedInfo()#

consume#

public static void consume(OneTimeAuthenticationToken oneTimeAuthenticationToken)#

If the token is valid, consume it once and store this information.

consume#

public void consume()#

If there are still replays and time left, increase the replay counter by one.

getKey#

public static String getKey(OneTimeAuthenticationToken token)#

isExpired#

public boolean isExpired()#