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
Exceptionpublic static TempToken getOrCreate(String key, ZonedDateTime expiresAt) throws Exception
Exceptionpublic static TempToken fetchToken(String tokenString) throws Exception
Exceptionpublic static String idToRandomString(Long id)
Copyright © 2016. All rights reserved.