Java 11
This commit is contained in:
parent
e2bf4b1334
commit
98ec3cdaa6
2 changed files with 4 additions and 3 deletions
4
pom.xml
4
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue