public class JJWTFactory extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
JJWTFactory.Builder
构建器
|
static class |
JJWTFactory.Builders
构建器
|
static class |
JJWTFactory.Parser
解析器
|
| 构造器和说明 |
|---|
JJWTFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
static JJWTFactory.Builder |
builder()
初始化构建器
|
static io.jsonwebtoken.Clock |
getClock(Date date)
获取偏移时间
不推荐使用
|
static GenerateKeyPair |
getKeyPair(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
获取密钥-非对称加密
|
static SecretKey |
getSecretKey(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
获取密钥-对称加密
|
static String |
getSecretKeyAsString(SecretKey secretKey)
获取密钥-对称加密
|
static String |
getSecretKeyAsString(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
获取密钥-对称加密
|
static SecretKey |
getSecretKeyByString(String secretKey)
获取密钥-对称加密
|
static JJWTFactory.Parser |
parser()
初始化解析器
|
public static GenerateKeyPair getKeyPair(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
signatureAlgorithm - 加密类型public static SecretKey getSecretKeyByString(String secretKey)
secretKey - 对称密钥字符串public static SecretKey getSecretKey(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
signatureAlgorithm - 加密类型public static String getSecretKeyAsString(io.jsonwebtoken.SignatureAlgorithm signatureAlgorithm)
signatureAlgorithm - 加密类型public static String getSecretKeyAsString(SecretKey secretKey)
secretKey - 密钥-对称加密public static io.jsonwebtoken.Clock getClock(Date date)
date - 时间public static JJWTFactory.Builder builder()
public static JJWTFactory.Parser parser()
Copyright © 2024. All rights reserved.