public final class Token
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateToken(java.lang.String secretPhrase,
byte[] message) |
static java.lang.String |
generateToken(java.lang.String secretPhrase,
java.lang.String messageString) |
byte[] |
getPublicKey() |
int |
getTimestamp() |
boolean |
isValid() |
static Token |
parseToken(java.lang.String tokenString,
byte[] messageBytes) |
static Token |
parseToken(java.lang.String tokenString,
java.lang.String website) |
public static java.lang.String generateToken(java.lang.String secretPhrase, java.lang.String messageString)
public static java.lang.String generateToken(java.lang.String secretPhrase, byte[] message)
public static Token parseToken(java.lang.String tokenString, java.lang.String website)
public static Token parseToken(java.lang.String tokenString, byte[] messageBytes)
public byte[] getPublicKey()
public int getTimestamp()
public boolean isValid()