This commit is contained in:
Minecon724 2024-11-10 09:36:24 +01:00
parent e2bf4b1334
commit 98ec3cdaa6
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 4 additions and 3 deletions

View file

@ -5,8 +5,8 @@
<version>0.1.9-SNAPSHOT</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<licenses>

View file

@ -100,7 +100,8 @@ public class SignatureVerifierImpl {
for (CodeSigner signer : signers) {
for (Certificate cert : signer.getSignerCertPath().getCertificates()) {
PublicKey certPublicKey = cert.getPublicKey();
if (certPublicKey instanceof RSAPublicKey rsaKey) {
if (certPublicKey instanceof RSAPublicKey) {
RSAPublicKey rsaKey = (RSAPublicKey) certPublicKey;
signerPublicKeys.add(Base64.getEncoder().encodeToString(rsaKey.getEncoded()));
for (RSAPublicKey publicKey : publicKeys) {