public class SecureTempTokens extends Object
Constructor and Description |
---|
SecureTempTokens() |
Modifier and Type | Method and Description |
---|---|
static TempToken |
fetchToken(String tokenString) |
static TempToken |
getOrCreate(String key) |
static TempToken |
getOrCreate(String key,
ZonedDateTime expiresAt) |
static String |
idToRandomString(Long id) |
static TempToken |
markUsed(TempToken token) |
public SecureTempTokens()
public static TempToken getOrCreate(String key) throws Exception
Exception
public static TempToken getOrCreate(String key, ZonedDateTime expiresAt) throws Exception
Exception
public static TempToken fetchToken(String tokenString) throws Exception
Exception
public static String idToRandomString(Long id)
Copyright © 2016. All rights reserved.