Class HttpDigestAuthProvider
- java.lang.Object
-
- io.helidon.security.spi.SynchronousProvider
-
- io.helidon.security.providers.httpauth.HttpDigestAuthProvider
-
- All Implemented Interfaces:
AuthenticationProvider
,SecurityProvider
public final class HttpDigestAuthProvider extends SynchronousProvider implements AuthenticationProvider
Http authentication security provider. Provides support for username and password authentication, with support for roles list.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpDigestAuthProvider.Builder
HttpDigestAuthProvider
fluent API builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpDigestAuthProvider.Builder
builder()
Get a builder instance to construct a new security provider.static HttpDigestAuthProvider
create(Config config)
Load this provider from configuration.protected AuthenticationResponse
syncAuthenticate(ProviderRequest providerRequest)
Synchronous authentication.-
Methods inherited from class io.helidon.security.spi.SynchronousProvider
authenticate, authorize, outboundSecurity, syncAuthorize, syncOutbound
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.security.spi.AuthenticationProvider
authenticate
-
Methods inherited from interface io.helidon.security.spi.SecurityProvider
supportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjects
-
-
-
-
Method Detail
-
builder
public static HttpDigestAuthProvider.Builder 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
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
-
syncAuthenticate
protected AuthenticationResponse syncAuthenticate(ProviderRequest providerRequest)
Description copied from class:SynchronousProvider
Synchronous authentication.- Overrides:
syncAuthenticate
in classSynchronousProvider
- Parameters:
providerRequest
- context with environment, subject(s) etc.- Returns:
- authentication response
- See Also:
AuthenticationProvider.authenticate(ProviderRequest)
-
-