| 构造器和说明 |
|---|
HMacJWTSigner(String algorithm,
byte[] key)
构造
|
HMacJWTSigner(String algorithm,
Key key)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAlgorithm()
获取算法
|
HMacJWTSigner |
setCharset(Charset charset)
设置编码
|
String |
sign(String headerBase64,
String payloadBase64)
签名
|
boolean |
verify(String headerBase64,
String payloadBase64,
String signBase64)
验签
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmIdpublic HMacJWTSigner(String algorithm, byte[] key)
algorithm - HMAC签名算法key - 密钥public HMacJWTSigner setCharset(Charset charset)
charset - 编码public boolean verify(String headerBase64, String payloadBase64, String signBase64)
JWTSignerpublic String getAlgorithm()
JWTSignergetAlgorithm 在接口中 JWTSignerCopyright © 2024. All rights reserved.