From 369adc07641d6c1a1a84534117f637c6ffd20058 Mon Sep 17 00:00:00 2001 From: Mustafa Alsalfiti Date: Tue, 16 Apr 2024 18:04:46 +0200 Subject: [PATCH] fix: change var name and remove IO exception --- .../tractusx/ssi/lib/crypt/x25519/x25519PrivateKey.java | 1 - .../org/eclipse/tractusx/ssi/lib/jwt/SignedJwtFactory.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/eclipse/tractusx/ssi/lib/crypt/x25519/x25519PrivateKey.java b/src/main/java/org/eclipse/tractusx/ssi/lib/crypt/x25519/x25519PrivateKey.java index a054743e..b27dd1d4 100644 --- a/src/main/java/org/eclipse/tractusx/ssi/lib/crypt/x25519/x25519PrivateKey.java +++ b/src/main/java/org/eclipse/tractusx/ssi/lib/crypt/x25519/x25519PrivateKey.java @@ -61,7 +61,6 @@ public x25519PrivateKey(byte[] privateKey) throws InvalidPrivateKeyFormatExcepti * @param privateKey the private key * @param pemFormat the pem format * @throws InvalidPrivateKeyFormatException the invalide private key format - * @throws IOException the io exception */ public x25519PrivateKey(String privateKey, boolean PEMFormat) throws InvalidPrivateKeyFormatException { diff --git a/src/main/java/org/eclipse/tractusx/ssi/lib/jwt/SignedJwtFactory.java b/src/main/java/org/eclipse/tractusx/ssi/lib/jwt/SignedJwtFactory.java index 72c9fb1b..727fada1 100644 --- a/src/main/java/org/eclipse/tractusx/ssi/lib/jwt/SignedJwtFactory.java +++ b/src/main/java/org/eclipse/tractusx/ssi/lib/jwt/SignedJwtFactory.java @@ -135,12 +135,12 @@ public SignedJWT create( @SneakyThrows public SignedJWT create( Did didIssuer, - Did holderIssuer, + Did holderDid, LinkedHashMap vc, IPrivateKey privateKey, String keyId) { final String issuer = didIssuer.toString(); - final String subject = holderIssuer.toString(); + final String subject = holderDid.toString(); // check if expirationDate is presented in VC then use it, otherwise null final Date expireDateAsDate =