use of com.auth0.jwk.Jwk in project tutorials by eugenp.
the class OpenIdConnectFilter method verifier.
private RsaVerifier verifier(String kid) throws Exception {
JwkProvider provider = new UrlJwkProvider(new URL(jwkUrl));
Jwk jwk = provider.get(kid);
return new RsaVerifier((RSAPublicKey) jwk.getPublicKey());
}
Aggregations