OneTimeAuthenticationToken
- public class OneTimeAuthenticationToken extends SelfValidatingAuthenticationToken
Fields
DEFAULT_MAX_REPLAYS
- public static final long DEFAULT_MAX_REPLAYS
DEFAULT_REPLAYS_TIMEOUT_MS
- public static final int DEFAULT_REPLAYS_TIMEOUT_MS
DEFAULT_TIMEOUT_MS
- public static final int DEFAULT_TIMEOUT_MS
LOGGER
- public static final Logger LOGGER
REALM_NAME
purposes
Constructors
OneTimeAuthenticationToken
OneTimeAuthenticationToken
Methods
calcChecksum
consume
- public void consume()
generate
- public static OneTimeAuthenticationToken generate(Config c)
generate
- public static OneTimeAuthenticationToken generate(Config c, Principal principal)
generateForPurpose
- public static OneTimeAuthenticationToken generateForPurpose(String purpose, Subject user)
getMaxReplays
- public long getMaxReplays()
getPurposeMap
getPurposeMap
getReplaysTimeout
- public long getReplaysTimeout()
initConfig
- public static void initConfig(InputStream yamlConfig)
initConfig
- public static void initConfig()
loadConfig
- public static List<Config> loadConfig(InputStream input)
parse
- public static OneTimeAuthenticationToken parse(Object[] array)
Return consumed.
- Parameters:
array –
curry –
resetConfig
- public static void resetConfig()