public class EllipticCurveJWTSigner extends AsymmetricJWTSigner
Constructor and Description |
---|
EllipticCurveJWTSigner(String algorithm,
Key key)
构造
|
EllipticCurveJWTSigner(String algorithm,
KeyPair keyPair)
构造
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
sign(byte[] data)
签名字符串数据
|
protected boolean |
verify(byte[] data,
byte[] signed)
验签数据
|
getAlgorithm, setCharset, sign, verify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithmId
public EllipticCurveJWTSigner(String algorithm, Key key)
algorithm
- 算法key
- 密钥protected byte[] sign(byte[] data)
AsymmetricJWTSigner
sign
in class AsymmetricJWTSigner
data
- 数据protected boolean verify(byte[] data, byte[] signed)
AsymmetricJWTSigner
verify
in class AsymmetricJWTSigner
data
- 数据signed
- 签名Copyright © 2024. All rights reserved.