Package nxt
Class Token
- java.lang.Object
-
- nxt.Token
-
public final class Token extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
generateToken
public static java.lang.String generateToken(java.lang.String secretPhrase, java.lang.String messageString)
-
generateToken
public static java.lang.String generateToken(java.lang.String secretPhrase, byte[] message)
-
parseToken
public static Token parseToken(java.lang.String tokenString, java.lang.String website)
-
parseToken
public static Token parseToken(java.lang.String tokenString, byte[] messageBytes)
-
getPublicKey
public byte[] getPublicKey()
-
getTimestamp
public int getTimestamp()
-
isValid
public boolean isValid()
-
-