.. java:import:: java.util HashMap .. java:import:: java.util Iterator .. java:import:: java.util LinkedList .. java:import:: java.util List .. java:import:: java.util Map .. java:import:: org.apache.shiro.authc AuthenticationException OneTimeTokenConsumedInfo ======================== .. java:package:: org.caosdb.server.accessControl :noindex: .. java:type:: 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 ^^^^^^^^^^^^^^^^^^^^^^^^ .. java:constructor:: public OneTimeTokenConsumedInfo(OneTimeAuthenticationToken oneTimeAuthenticationToken) :outertype: OneTimeTokenConsumedInfo Methods ------- cleanupConsumedInfo ^^^^^^^^^^^^^^^^^^^ .. java:method:: public static void cleanupConsumedInfo() :outertype: OneTimeTokenConsumedInfo consume ^^^^^^^ .. java:method:: public static void consume(OneTimeAuthenticationToken oneTimeAuthenticationToken) :outertype: OneTimeTokenConsumedInfo If the token is valid, consume it once and store this information. consume ^^^^^^^ .. java:method:: public void consume() :outertype: OneTimeTokenConsumedInfo If there are still replays and time left, increase the replay counter by one. getKey ^^^^^^ .. java:method:: public static String getKey(OneTimeAuthenticationToken token) :outertype: OneTimeTokenConsumedInfo isExpired ^^^^^^^^^ .. java:method:: public boolean isExpired() :outertype: OneTimeTokenConsumedInfo