Interface JsonWebKeySetHandler

All Known Subinterfaces:
JsonWebKeySetOpenIdDiscoveryHandler, JsonWebKeySetStaticHandler
All Known Implementing Classes:
JWKSOpenIdDiscoveryHandlerImpl, JWKSStaticSetHandlerImpl

public interface JsonWebKeySetHandler
Perform OpenID Connect discovery as per openid-connect-discovery-1_0.
Author:
jtalbut
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.Future<JWK>
    findJwk(String issuer, String kid)
    Find a JWK for the given issuer and kid.
    void
    Confirm that the issuer matches at least one of the configured acceptable issuer regular expressions.
  • Method Details

    • validateIssuer

      void validateIssuer(String issuer) throws IllegalArgumentException
      Confirm that the issuer matches at least one of the configured acceptable issuer regular expressions.
      Parameters:
      issuer - the issuer to confirm.
      Throws:
      IllegalArgumentException - if the issuer is not in the list of acceptable issuers.
    • findJwk

      io.vertx.core.Future<JWK> findJwk(String issuer, String kid)
      Find a JWK for the given issuer and kid.
      Parameters:
      issuer - the issuer of the JWT (and JWK).
      kid - The key ID being sought.
      Returns:
      A Future that will be completed with a JWK.