mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-16 13:09:34 +08:00
fix code
This commit is contained in:
parent
ddde088695
commit
80a5898cdc
@ -48,7 +48,7 @@ public class AsymmetricJWTSigner implements JWTSigner {
|
|||||||
public AsymmetricJWTSigner(final String algorithm, final Key key) {
|
public AsymmetricJWTSigner(final String algorithm, final Key key) {
|
||||||
final PublicKey publicKey = key instanceof PublicKey ? (PublicKey) key : null;
|
final PublicKey publicKey = key instanceof PublicKey ? (PublicKey) key : null;
|
||||||
final PrivateKey privateKey = key instanceof PrivateKey ? (PrivateKey) key : null;
|
final PrivateKey privateKey = key instanceof PrivateKey ? (PrivateKey) key : null;
|
||||||
this.sign = new Sign(algorithm, privateKey, publicKey);
|
this.sign = new Sign(algorithm, new KeyPair(publicKey, privateKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user