public class SqrlNutTokenUtil extends Object
SqrlNutToken| Modifier and Type | Method and Description |
|---|---|
static long |
computeNutExpiresAt(SqrlNutToken nutToken,
SqrlConfig config)
Computes when a given SQRL "nut" nonce token will expire
|
static int |
inetAddressToInt(URI serverUrl,
InetAddress requesterIpAddress,
SqrlConfig config) |
static boolean |
validateInetAddress(InetAddress requesterIpAddress,
int inetInt,
SqrlConfig config) |
static void |
validateNut(String correlator,
SqrlNutToken nutToken,
SqrlConfig config,
SqrlPersistence sqrlPersistence,
SqrlTif.TifBuilder tifBuilder)
|
public static int inetAddressToInt(URI serverUrl, InetAddress requesterIpAddress, SqrlConfig config) throws SqrlException
SqrlExceptionpublic static boolean validateInetAddress(InetAddress requesterIpAddress, int inetInt, SqrlConfig config) throws SqrlException
SqrlExceptionpublic static void validateNut(String correlator, SqrlNutToken nutToken, SqrlConfig config, SqrlPersistence sqrlPersistence, SqrlTif.TifBuilder tifBuilder) throws SqrlException
SqrlNutToken from the SqrlClientRequest by:SqrlPersistence to see if the Nut has been replayedcorrelator - nutToken - the Nut to be validatedtifBuilder - SqrlException - if any validation fails or if persistence failspublic static long computeNutExpiresAt(SqrlNutToken nutToken, SqrlConfig config)
nutToken - the token for which expiration time will be computedconfig - the SQRL configCopyright © 2016. All rights reserved.