public class AuthTokenUtils extends Object
| Constructor and Description |
|---|
AuthTokenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SecretKey |
createSecretKey(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm) |
static String |
createToken(Key signingKey,
String subject,
Optional<Date> expiryTime) |
static PrivateKey |
decodePrivateKey(byte[] key,
io.jsonwebtoken.SignatureAlgorithm algType) |
static PublicKey |
decodePublicKey(byte[] key,
io.jsonwebtoken.SignatureAlgorithm algType) |
static SecretKey |
decodeSecretKey(byte[] secretKey) |
static String |
encodeKeyBase64(Key key) |
static byte[] |
readKeyFromUrl(String keyConfUrl) |
public static SecretKey createSecretKey(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
public static SecretKey decodeSecretKey(byte[] secretKey)
public static PrivateKey decodePrivateKey(byte[] key, io.jsonwebtoken.SignatureAlgorithm algType) throws IOException
IOExceptionpublic static PublicKey decodePublicKey(byte[] key, io.jsonwebtoken.SignatureAlgorithm algType) throws IOException
IOExceptionpublic static String createToken(Key signingKey, String subject, Optional<Date> expiryTime)
public static byte[] readKeyFromUrl(String keyConfUrl) throws IOException
IOExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.