public class SqrlNutToken extends Object
| Constructor and Description |
|---|
SqrlNutToken(int inetInt,
SqrlConfigOperations configOps,
int counter,
long timestamp,
int randomInt) |
SqrlNutToken(SqrlConfigOperations configOps,
String sqBase64EncryptedNut) |
| Modifier and Type | Method and Description |
|---|---|
String |
asSqrlBase64EncryptedNut() |
boolean |
equals(Object obj) |
int |
getCounter() |
int |
getInetInt() |
long |
getIssuedTimestampMillis()
Creation time of the Nut in standard java millis format, but with second granularity; the millis value will
always be 0000.
|
int |
getRandomInt() |
int |
hashCode() |
String |
toString() |
public SqrlNutToken(int inetInt,
SqrlConfigOperations configOps,
int counter,
long timestamp,
int randomInt)
throws SqrlException
inetInt - config - counter - timestamp - The time at which the Nut was created, typically System.currentTimeMillis(). Note that the
data in the Nut is only stored with second granularityrandomInt - SqrlExceptionpublic SqrlNutToken(SqrlConfigOperations configOps, String sqBase64EncryptedNut) throws SqrlException
SqrlExceptionpublic int getInetInt()
public int getCounter()
public long getIssuedTimestampMillis()
SqrlNutToken#Nut(int, SqrlConfig, int, long, int) was called with a timestamp of
1463948680679, then this would return 1463948680000public int getRandomInt()
public String asSqrlBase64EncryptedNut()
Copyright © 2016. All rights reserved.