Interface JsonWebKeySetStaticHandler

All Superinterfaces:
JsonWebKeySetHandler
All Known Implementing Classes:
JWKSStaticSetHandlerImpl

public interface JsonWebKeySetStaticHandler extends JsonWebKeySetHandler
Manage JWKs manually. It is not usually necessary to use this interface for anything other than the Factory methods.
Author:
jtalbut
  • Method Details

    • create

      static JsonWebKeySetStaticHandler create()
      Construct an instance of the implementation class that will accept any issuer. With a static map of JWKs the security of the system is not compromised by allowing any issuer, though you should question why this is necessary.
      Returns:
      a newly created instance of the implementation class.
    • create

      static JsonWebKeySetStaticHandler create(Collection<String> acceptableIssuerRegexes)
      Construct an instance of the implementation class. With a static map of JWKs the security of the system is not compromised by allowing any issuer, though you should question why this is necessary.
      Parameters:
      acceptableIssuerRegexes - Collection of regular expressions that any issues will be checked against.
      Returns:
      a newly created instance of the implementation class.
    • addKey

      JsonWebKeySetStaticHandler addKey(String issuer, JWK key)
      Add a JWK to the known set.
      Parameters:
      issuer - The issuer of the key being added.
      key - The key being added.
      Returns:
      this for fluent configuration.
    • removeKey

      JsonWebKeySetStaticHandler removeKey(String issuer, String kid)
      Remove a JWK from the known set.
      Parameters:
      issuer - The issuer of the key being removed.
      kid - The ID of the key being removed.
      Returns:
      this for fluent configuration.