public static final class HttpDigestAuthProvider.Builder extends Object implements Builder<HttpDigestAuthProvider>
HttpDigestAuthProvider fluent API builder.| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_DIGEST_NONCE_TIMEOUT
Default is 24 hours.
|
| Modifier and Type | Method and Description |
|---|---|
HttpDigestAuthProvider.Builder |
addDigestQop(HttpDigest.Qop qop)
Digest QOP to support.
|
HttpDigestAuthProvider |
build()
Build the instance from this builder.
|
HttpDigestAuthProvider.Builder |
config(Config config)
Update builder from configuration.
|
HttpDigestAuthProvider.Builder |
digestAlgorithm(HttpDigest.Algorithm algorithm)
Digest algorithm to use.
|
HttpDigestAuthProvider.Builder |
digestNonceTimeout(long duration,
TimeUnit unit)
How long will the nonce value be valid.
|
HttpDigestAuthProvider.Builder |
digestServerSecret(char[] serverSecret)
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.
|
HttpDigestAuthProvider.Builder |
noDigestQop()
Do not use qop in challenge (will fallback to legacy RFC-2069 instead of RFC-2617.
|
HttpDigestAuthProvider.Builder |
realm(String realm)
Set the realm to use when challenging users.
|
HttpDigestAuthProvider.Builder |
subjectType(SubjectType subjectType)
Principal type this provider extracts (and also propagates).
|
HttpDigestAuthProvider.Builder |
userStore(UserStore store)
Set user store to obtain passwords and roles based on logins.
|
public static final long DEFAULT_DIGEST_NONCE_TIMEOUT
public HttpDigestAuthProvider.Builder config(Config config)
config - to read configuration from, located on the node of the providerpublic HttpDigestAuthProvider build()
Builderbuild in interface Builder<HttpDigestAuthProvider>public HttpDigestAuthProvider.Builder subjectType(SubjectType subjectType)
subjectType - type of principalpublic HttpDigestAuthProvider.Builder userStore(UserStore store)
store - User store to usepublic HttpDigestAuthProvider.Builder realm(String realm)
realm - security realm name to send to browser (or any other client) when unauthenticatedpublic HttpDigestAuthProvider.Builder digestAlgorithm(HttpDigest.Algorithm algorithm)
algorithm - Algorithm to use, default is HttpDigest.Algorithm.MD5public HttpDigestAuthProvider.Builder digestNonceTimeout(long duration, TimeUnit unit)
DEFAULT_DIGEST_NONCE_TIMEOUT TimeUnit.MILLISECONDS.duration - Duration valueunit - Duration time unitpublic HttpDigestAuthProvider.Builder digestServerSecret(char[] serverSecret)
serverSecret - a password to encrypt our nonce values withpublic HttpDigestAuthProvider.Builder addDigestQop(HttpDigest.Qop qop)
qop - qop to add to list of supported qopspublic HttpDigestAuthProvider.Builder noDigestQop()
Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.