mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +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) {
|
||||
final PublicKey publicKey = key instanceof PublicKey ? (PublicKey) 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