public class JWTSignerUtil extends Object
Constructor and Description |
---|
JWTSignerUtil() |
Modifier and Type | Method and Description |
---|---|
static JWTSigner |
createSigner(String algorithmId,
byte[] key)
创建签名器
|
static JWTSigner |
createSigner(String algorithmId,
Key key)
创建签名器
|
static JWTSigner |
createSigner(String algorithmId,
KeyPair keyPair)
创建签名器
|
static JWTSigner |
dnone(Key key)
DNONE(NONEwithDSA)签名器
|
static JWTSigner |
dsha1(Key key)
DSHA1(SHA1withDSA)签名器
|
static JWTSigner |
enone(Key key)
ENONE(NONEwithECDSA)签名器
|
static JWTSigner |
es256(Key key)
ES256(SHA256withECDSA)签名器
|
static JWTSigner |
es384(Key key)
ES384(SHA383withECDSA)签名器
|
static JWTSigner |
es512(Key key)
ES512(SHA512withECDSA)签名器
|
static JWTSigner |
esha1(Key key)
ESHA1(SHA1withECDSA)签名器
|
static JWTSigner |
hmd5(Key key)
HMD5(HmacMD5)签名器
|
static JWTSigner |
hs256(byte[] key)
HS256(HmacSHA256)签名器
|
static JWTSigner |
hs384(byte[] key)
HS384(HmacSHA384)签名器
|
static JWTSigner |
hs512(byte[] key)
HS512(HmacSHA512)签名器
|
static JWTSigner |
hsha1(Key key)
HSHA1(HmacSHA1)签名器
|
static JWTSigner |
none()
无签名
|
static JWTSigner |
rmd2(Key key)
RMD2(MD2withRSA)签名器
|
static JWTSigner |
rmd5(Key key)
RMD5(MD5withRSA)签名器
|
static JWTSigner |
rs256(Key key)
RS256(SHA256withRSA)签名器
|
static JWTSigner |
rs384(Key key)
RS384(SHA384withRSA)签名器
|
static JWTSigner |
rs512(Key key)
RS512(SHA512withRSA)签名器
|
static JWTSigner |
rsha1(Key key)
RSHA1(SHA1withRSA)签名器
|
static JWTSigner |
sm4cmac(Key key)
SM4CMAC(SM4CMAC)签名器
|
public static JWTSigner none()
public static JWTSigner hs256(byte[] key)
key
- 密钥public static JWTSigner hs384(byte[] key)
key
- 密钥public static JWTSigner hs512(byte[] key)
key
- 密钥public static JWTSigner rs256(Key key)
key
- 密钥public static JWTSigner rs384(Key key)
key
- 密钥public static JWTSigner rs512(Key key)
key
- 密钥public static JWTSigner es256(Key key)
key
- 密钥public static JWTSigner es384(Key key)
key
- 密钥public static JWTSigner es512(Key key)
key
- 密钥public static JWTSigner sm4cmac(Key key)
key
- 密钥public static JWTSigner rsha1(Key key)
key
- 密钥public static JWTSigner dnone(Key key)
key
- 密钥public static JWTSigner dsha1(Key key)
key
- 密钥public static JWTSigner enone(Key key)
key
- 密钥public static JWTSigner esha1(Key key)
key
- 密钥public static JWTSigner createSigner(String algorithmId, byte[] key)
algorithmId
- 算法ID,见AlgorithmUtil
key
- 密钥public static JWTSigner createSigner(String algorithmId, KeyPair keyPair)
algorithmId
- 算法ID,见AlgorithmUtil
keyPair
- 密钥对public static JWTSigner createSigner(String algorithmId, Key key)
algorithmId
- 算法ID,见AlgorithmUtil
key
- 密钥Copyright © 2024. All rights reserved.