Class KeycloakTokenVerifier

java.lang.Object
eu.europeana.apikey.keycloak.KeycloakTokenVerifier

public class KeycloakTokenVerifier extends Object
Class used for verifying token signature. It uses the realm public key from the application's configuration.
  • Constructor Details

    • KeycloakTokenVerifier

      protected KeycloakTokenVerifier(String realmPublicKey)
      Instantiates a new Keycloak token verifier.
      Parameters:
      realmPublicKey - the realm public key
    • KeycloakTokenVerifier

      public KeycloakTokenVerifier(KeycloakProperties kcProperties)
      Instantiates a new Keycloak token verifier.
      Parameters:
      kcProperties - the kc properties
  • Method Details

    • getPublicKey

      public PublicKey getPublicKey()
      Return the realm public key
      Returns:
      public key of the realm