Class HttpDigestAuthProvider
java.lang.Object
io.helidon.security.providers.httpauth.HttpDigestAuthProvider
- All Implemented Interfaces:
AuthenticationProvider,SecurityProvider
Http authentication security provider.
Provides support for username and password authentication, with support for roles list.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(ProviderRequest providerRequest) Authenticate a request.builder()Get a builder instance to construct a new security provider.static HttpDigestAuthProviderDeprecated, for removal: This API element is subject to removal in a future version.static HttpDigestAuthProviderLoad this provider from configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.security.spi.SecurityProvider
supportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjects
-
Method Details
-
builder
Get a builder instance to construct a new security provider. Alternative approach iscreate(Config)(orcreate(Config)).- Returns:
- builder to fluently construct Basic security provider
-
create
@Deprecated(since="4.4.0", forRemoval=true) public static HttpDigestAuthProvider create(Config config) Deprecated, for removal: This API element is subject to removal in a future version.usecreate(io.helidon.config.Config)insteadLoad this provider from configuration.- Parameters:
config- configuration- Returns:
- instance of provider configured from provided config
-
create
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
Description copied from interface:AuthenticationProviderAuthenticate 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
Principalor a wholeSubjecteither for a user or for service (or both).- Specified by:
authenticatein interfaceAuthenticationProvider- Parameters:
providerRequest- context of this security enforcement/validation- Returns:
- response that either authenticates the request, fails authentication or abstains from authentication
- See Also:
-
create(io.helidon.config.Config)instead