public class JWTUtils extends Object
| Constructor and Description |
|---|
JWTUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RSAKeyPair |
generate2048RSAKeyPair()
Generate a new public / private key pair using a 2048 bit RSA key.
|
static RSAKeyPair |
generate3072RSAKeyPair()
Generate a new public / private key pair using a 3072 bit RSA key.
|
static RSAKeyPair |
generate4096RSAKeyPair()
Generate a new public / private key pair using a 4096 bit RSA key.
|
static String |
generateSHA256HMACSecret()
Generate a 32 byte (256 bit) HMAC secret for use with a SHA-256 hash.
|
static String |
generateSHA384HMACSecret()
Generate a 48 byte (384 bit) HMAC secret for use with a SHA-384 hash.
|
static String |
generateSHA512HMACSecret()
Generate a 64 byte (512 bit) HMAC secret for use with a SHA-512 hash.
|
public static RSAKeyPair generate2048RSAKeyPair()
public static RSAKeyPair generate3072RSAKeyPair()
public static RSAKeyPair generate4096RSAKeyPair()
public static String generateSHA256HMACSecret()
public static String generateSHA384HMACSecret()
public static String generateSHA512HMACSecret()
Copyright © 2017. All rights reserved.