Class HttpDigestAuthProvider.Builder
java.lang.Object
io.helidon.security.providers.httpauth.HttpDigestAuthProvider.Builder
- All Implemented Interfaces:
Builder<HttpDigestAuthProvider.Builder,,HttpDigestAuthProvider> Supplier<HttpDigestAuthProvider>
- Enclosing class:
HttpDigestAuthProvider
@Deprecated(since="4.5.0",
forRemoval=true)
public static final class HttpDigestAuthProvider.Builder
extends Object
implements Builder<HttpDigestAuthProvider.Builder,HttpDigestAuthProvider>
Deprecated, for removal: This API element is subject to removal in a future version.
HTTP Digest authentication relies on obsolete MD5-based authentication and will be removed in a
future version without replacement
HttpDigestAuthProvider fluent API builder.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDeprecated, for removal: This API element is subject to removal in a future version.Default is 24 hours. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Digest QOP to support.build()Deprecated, for removal: This API element is subject to removal in a future version.Build the instance from this builder.Deprecated, for removal: This API element is subject to removal in a future version.useconfig(io.helidon.config.Config)insteadDeprecated, for removal: This API element is subject to removal in a future version.Update builder from configuration.digestAlgorithm(HttpDigest.Algorithm algorithm) Deprecated, for removal: This API element is subject to removal in a future version.Digest algorithm to use.digestNonceTimeout(long duration, TimeUnit unit) Deprecated, for removal: This API element is subject to removal in a future version.How long will the nonce value be valid.digestServerSecret(char[] serverSecret) Deprecated, for removal: This API element is subject to removal in a future version.The nonce is encrypted using this secret - to make sure the nonce we get back was generated by us and to make sure we can safely time-out nonce values.Deprecated, for removal: This API element is subject to removal in a future version.Do not use qop in challenge (will fallback to legacy RFC-2069 instead of RFC-2617.optional(boolean optional) Deprecated, for removal: This API element is subject to removal in a future version.Whether authentication is required.Deprecated, for removal: This API element is subject to removal in a future version.Set the realm to use when challenging users.subjectType(SubjectType subjectType) Deprecated, for removal: This API element is subject to removal in a future version.Principal type this provider extracts (and also propagates).userStore(SecureUserStore store) Deprecated, for removal: This API element is subject to removal in a future version.Set user store to obtain passwords and roles based on logins.
-
Field Details
-
DEFAULT_DIGEST_NONCE_TIMEOUT
public static final long DEFAULT_DIGEST_NONCE_TIMEOUTDeprecated, for removal: This API element is subject to removal in a future version.Default is 24 hours.- See Also:
-
-
Method Details
-
config
@Deprecated(since="4.4.0", forRemoval=true) public HttpDigestAuthProvider.Builder config(Config config) Deprecated, for removal: This API element is subject to removal in a future version.useconfig(io.helidon.config.Config)insteadUpdate builder from configuration.- Parameters:
config- to read configuration from, located on the node of the provider- Returns:
- updated builder instance
-
config
Deprecated, for removal: This API element is subject to removal in a future version.Update builder from configuration.- Parameters:
config- to read configuration from, located on the node of the provider- Returns:
- updated builder instance
-
build
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<HttpDigestAuthProvider.Builder,HttpDigestAuthProvider> - Returns:
- instance of the built type
-
subjectType
Deprecated, for removal: This API element is subject to removal in a future version.Principal type this provider extracts (and also propagates).- Parameters:
subjectType- type of principal- Returns:
- updated builder instance
-
userStore
Deprecated, for removal: This API element is subject to removal in a future version.Set user store to obtain passwords and roles based on logins.- Parameters:
store- User store to use- Returns:
- updated builder instance
-
optional
Deprecated, for removal: This API element is subject to removal in a future version.Whether authentication is required. By default, request will fail if the authentication cannot be verified. If set to false, request will process and this provider will abstain.- Parameters:
optional- whether authentication is optional (true) or required (false)- Returns:
- updated builder instance
-
realm
Deprecated, for removal: This API element is subject to removal in a future version.Set the realm to use when challenging users.- Parameters:
realm- security realm name to send to browser (or any other client) when unauthenticated- Returns:
- updated builder instance
-
digestAlgorithm
Deprecated, for removal: This API element is subject to removal in a future version.Digest algorithm to use.- Parameters:
algorithm- Algorithm to use, default isHttpDigest.Algorithm.MD5- Returns:
- updated builder instance
-
digestNonceTimeout
Deprecated, for removal: This API element is subject to removal in a future version.How long will the nonce value be valid. When timed-out, browser will re-request username/password. Defaults toDEFAULT_DIGEST_NONCE_TIMEOUTTimeUnit.MILLISECONDS.- Parameters:
duration- Duration valueunit- Duration time unit- Returns:
- updated builder instance
-
digestServerSecret
Deprecated, for removal: This API element is subject to removal in a future version.The nonce is encrypted using this secret - to make sure the nonce we get back was generated by us and to make sure we can safely time-out nonce values. This secret must be the same for all service instances (or all services that want to share the same authentication). Defaults to a random password - e.g. if deployed to multiple servers, the authentication WILL NOT WORK. You MUST provide your own password to work in a distributed environment with non-sticky load balancing.- Parameters:
serverSecret- a password to encrypt our nonce values with- Returns:
- updated builder instance
-
addDigestQop
Deprecated, for removal: This API element is subject to removal in a future version.Digest QOP to support.- Parameters:
qop- qop to add to list of supported qops- Returns:
- updated builder instance
-
noDigestQop
Deprecated, for removal: This API element is subject to removal in a future version.Do not use qop in challenge (will fallback to legacy RFC-2069 instead of RFC-2617.- Returns:
- updated builder instance
-