This commit is contained in:
Looly 2024-08-14 01:08:54 +08:00
parent ddde088695
commit 80a5898cdc

View File

@ -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));
}
/**