Interface JWKURLResolver


public interface JWKURLResolver

A JWK URL resolver is used within JWKFactory and JWKBuilder to resolve JWK Set resources from JWK Set URL (i.e. jku) or X.509 certificate from X.509 URLs (i.e. x5u).

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • resolveJWKSetURL

      Publisher<Map<String,Object>> resolveJWKSetURL(URI jku) throws JWKResolveException

      Resolves a JSON JWK or JWK set at the specified location and returns corresponding keys represented as maps.

      Parameters:
      jku - the URI of the JSON JWK or JWK set resource
      Returns:
      a publisher of parsed keys represented as maps
      Throws:
      JWKResolveException - if there was an error resolving the resource
    • resolveX509CertificateURL

      Mono<List<X509Certificate>> resolveX509CertificateURL(URI x5u) throws JWKResolveException

      Resolves the X.509 certificates chain at the specified location as defined by RFC7515 Section 4.1.5

      Parameters:
      x5u - the URI of the X.509 certificate chain
      Returns:
      a single X.509 certificates chain publisher
      Throws:
      JWKResolveException - if there was an error resolving the certificates chain