java.lang.Object
io.helidon.security.providers.httpauth.HttpDigestAuthProvider
All Implemented Interfaces:
AuthenticationProvider, SecurityProvider

public final class HttpDigestAuthProvider extends Object implements AuthenticationProvider
Http authentication security provider. Provides support for username and password authentication, with support for roles list.
  • Method Details

    • builder

      public static HttpDigestAuthProvider.Builder builder()
      Get a builder instance to construct a new security provider. Alternative approach is create(Config) (or create(Config)).
      Returns:
      builder to fluently construct Basic security provider
    • create

      public static HttpDigestAuthProvider create(Config config)
      Load this provider from configuration.
      Parameters:
      config - Configuration located at this provider's configuration (e.g. child is either http-basic-auth or http-digest-auth)
      Returns:
      instance of provider configured from provided config
    • authenticate

      public AuthenticationResponse authenticate(ProviderRequest providerRequest)
      Description copied from interface: AuthenticationProvider
      Authenticate a request. This may be just resolving headers (tokens) or full authentication (basic auth). Do not throw exception for normal processing (e.g. invalid credentials; you may throw an exception in case of misconfiguration). This method will be invoked for inbound requests ONLY.

      This method must provide either a Principal or a whole Subject either for a user or for service (or both).

      Specified by:
      authenticate in interface AuthenticationProvider
      Parameters:
      providerRequest - context of this security enforcement/validation
      Returns:
      response that either authenticates the request, fails authentication or abstains from authentication
      See Also: