Class KeycloakAuthenticator


  • public class KeycloakAuthenticator
    extends Object
    Provides basic authentication functions for verifying tokens.
    Author:
    Jesse Sightler
    • Constructor Detail

      • KeycloakAuthenticator

        public KeycloakAuthenticator()
    • Method Detail

      • validateToken

        public static void validateToken​(boolean ssl,
                                         String serverHost,
                                         String token)
                                  throws KeycloakAuthenticationException
        Authenticate the given keycloak token with the keycloak server. The host of the current server is included in the request, to cover the case where the keycloak url setting is a relative url.
        Parameters:
        token -
        Throws:
        KeycloakAuthenticationException