public class JWTHokFactory extends Object
Constructor and Description |
---|
JWTHokFactory() |
Modifier and Type | Method and Description |
---|---|
static String |
newHokToken(PrivateKey privateKey,
PublicKey publicKey,
int hours)
Generates a new HokToken using your private key.
|
static String |
newRandomString()
Generates a new 256 bit strong random string
|
static String |
newRandomString(int length)
Generates a new random string with the given length.
|
public static String newHokToken(PrivateKey privateKey, PublicKey publicKey, int hours) throws com.nimbusds.jose.JOSEException
privateKey
- publicKey
- hours
- com.nimbusds.jose.JOSEException
public static String newRandomString()
String
object.Copyright © 2015 Universitätsmedizin Mainz, Abteilung IMBEI. All rights reserved.