Repository: eclipse-vertx/vertx-auth
Issue: 4.2.1: NoSuchAlgorithmException: RSA-OAEP no longer a warning

### Questions

Do not use this issue tracker to ask questions, instead use one of these [channels](https://vertx.io/community/). Questions will likely be closed without notice.

### Version

4.2.1

### Context

I encountered an exception which looks suspicious while ...

### Do you have a reproducer?

JWTUtil.setupJwtAuth();

throws an exception and does not iterate through all algorithms.

### Extra
i am migrating from 3.2.1 to 4.2.1
with 3.2.1 JWTUtil.setupJwtAuth(); did not throw an exception, so setup completed correctly.

to resolve change:

in io.vertx.ext.auth.jwt.impl.JWTAuthProviderImpl

        for (JsonObject jwk : jwks) {

            //this.jwt.addJWK(new JWK(jwk));

             // +++ should be warning not throw an exception

             try

             {

          this.jwt.addJWK(new JWK(jwk));

             }

             catch (Exception ex)

             {

                   System.out.println("warning: "+ex.getMessage());

             }

             // +++

        }


Changed files:
vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/impl/OAuth2AuthProviderImpl.java
vertx-auth-common/src/main/java/io/vertx/ext/auth/impl/asn/ASN1.java
vertx-auth-jwt/src/main/java/io/vertx/ext/auth/jwt/impl/JWTAuthProviderImpl.java

diff --git a/vertx-auth-common/src/main/java/io/vertx/ext/auth/impl/asn/ASN1.java b/vertx-auth-common/src/main/java/io/vertx/ext/auth/impl/asn/ASN1.java
index 5c1e8a13..b0b05d48 100644
--- a/vertx-auth-common/src/main/java/io/vertx/ext/auth/impl/asn/ASN1.java
+++ b/vertx-auth-common/src/main/java/io/vertx/ext/auth/impl/asn/ASN1.java
@@ -17,6 +17,7 @@ package io.vertx.ext.auth.impl.asn;
 
 import io.vertx.core.buffer.Buffer;
 
+import java.math.BigInteger;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -87,6 +88,22 @@ public class ASN1 {
       return (byte[]) value.get(index);
     }
 
+    public int integer(int index) {
+      byte[] bytes = binary(index);
+      if (bytes.length > 4) {
+        throw new IllegalArgumentException("integer too long");
+      }
+      int result = 0;
+      for (byte b : bytes) {
+        result = (result << 8) | (b & 0xFF);
+      }
+      return result;
+    }
+
+    public BigInteger bigInteger(int index) {
+      return new BigInteger(binary(index));
+    }
+
     public ASN object(int index) {
       return (ASN) value.get(index);
     }
diff --git a/vertx-auth-jwt/src/main/java/io/vertx/ext/auth/jwt/impl/JWTAuthProviderImpl.java b/vertx-auth-jwt/src/main/java/io/vertx/ext/auth/jwt/impl/JWTAuthProviderImpl.java
index 081b99b0..e7629a49 100644
--- a/vertx-auth-jwt/src/main/java/io/vertx/ext/auth/jwt/impl/JWTAuthProviderImpl.java
+++ b/vertx-auth-jwt/src/main/java/io/vertx/ext/auth/jwt/impl/JWTAuthProviderImpl.java
@@ -22,6 +22,8 @@ import io.vertx.core.Handler;
 import io.vertx.core.Vertx;
 import io.vertx.core.buffer.Buffer;
 import io.vertx.core.file.FileSystemException;
+import io.vertx.core.impl.logging.Logger;
+import io.vertx.core.impl.logging.LoggerFactory;
 import io.vertx.core.json.Json;
 import io.vertx.core.json.JsonArray;
 import io.vertx.core.json.JsonObject;
@@ -55,6 +57,8 @@ import java.util.List;
  */
 public class JWTAuthProviderImpl implements JWTAuth {
 
+  private static final Logger LOG = LoggerFactory.getLogger(JWTAuthProviderImpl.class);
+
   private static final JsonArray EMPTY_ARRAY = new JsonArray();
 
   private final JWT jwt = new JWT();
@@ -112,7 +116,11 @@ public class JWTAuthProviderImpl implements JWTAuth {
 
       if (jwks != null) {
         for (JsonObject jwk : jwks) {
-          this.jwt.addJWK(new JWK(jwk));
+          try {
+            jwt.addJWK(new JWK(jwk));
+          } catch (Exception e) {
+            LOG.warn("Unsupported JWK", e);
+          }
         }
       }
 
diff --git a/vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/impl/OAuth2AuthProviderImpl.java b/vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/impl/OAuth2AuthProviderImpl.java
index 3b2a2b97..d3db785a 100644
--- a/vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/impl/OAuth2AuthProviderImpl.java
+++ b/vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/impl/OAuth2AuthProviderImpl.java
@@ -120,8 +120,8 @@ public class OAuth2AuthProviderImpl implements OAuth2Auth, Closeable {
           for (Object key : keys) {
             try {
               jwt.addJWK(new JWK((JsonObject) key));
-            } catch (RuntimeException e) {
-              LOG.warn("Skipped unsupported JWK: " + e.getMessage());
+            } catch (Exception e) {
+              LOG.warn("Unsupported JWK", e);
             }
           }
           // swap