Interface WebContextSecurer


public interface WebContextSecurer
Author:
Michael Vorburger.ch
  • Method Details

    • requireAuthentication

      void requireAuthentication(WebContext.Builder webContextBuilder, boolean asyncSupported, String... urlPatterns)
      Configure the WebContext to require auth for specified URLs.

      Configure the WebContext so that it requires authentication to access the given URL Patterns. Typically, this will be done by adding a javax.servlet.Filter (or several, and whatever else they need).

      Parameters:
      webContextBuilder - builder to secure
      asyncSupported - true if asynchronous communication should also be supported
      urlPatterns - URL patterns that require authentication
    • requireAuthentication

      default void requireAuthentication(WebContext.Builder webContextBuilder, String... urlPatterns)
      Configure the WebContext to require auth for specified URLs.

      Configures the WebContext so that it requires authentication to access the given URL Patterns. Typically, this will be done by adding a javax.servlet.Filter (or several, and whatever else they need).

      This method is equivalent to requireAuthentication(webContextBuilder, false, urlPatterns.

      Parameters:
      webContextBuilder - builder to secure
      urlPatterns - URL patterns that require authentication
    • requireAuthentication

      default void requireAuthentication(WebContext.Builder webContextBuilder)
      Configure the WebContext to require auth all URLs.

      Configures the WebContext so that all its URL patterns (/**) require authentication.

      Parameters:
      webContextBuilder - builder to secure
      See Also: