Class BasicAuthenticationHttpHandler

java.lang.Object
com.github.toolarium.jwebserver.handler.auth.BasicAuthenticationHttpHandler

public final class BasicAuthenticationHttpHandler extends Object
Basic authentication utility
  • Method Details

    • addHandler

      public static io.undertow.server.HttpHandler addHandler(IWebServerConfiguration webServerConfiguration, io.undertow.server.HttpHandler handlerToWrap)
      Add basic authentication
      Parameters:
      webServerConfiguration - the web server configuration
      handlerToWrap - the handler to wrap
      Returns:
      the handler
    • addHandler

      public static io.undertow.server.HttpHandler addHandler(IWebServerConfiguration webServerConfiguration, io.undertow.server.HttpHandler handlerToWrap, String realmName, io.undertow.security.idm.IdentityManager identityManager)
      Add basic authentication
      Parameters:
      webServerConfiguration - the web server configuration
      handlerToWrap - the handler to wrap
      realmName - the realm name
      identityManager - the idendity provider
      Returns:
      the handler