Builder<HttpDigestAuthProvider>public static class HttpDigestAuthProvider.Builder extends java.lang.Object implements Builder<HttpDigestAuthProvider>
HttpDigestAuthProvider fluent API builder.| Modifier and Type | Field | Description |
|---|---|---|
static long |
DEFAULT_DIGEST_NONCE_TIMEOUT |
Default is 24 hours.
|
| Modifier and Type | Method | Description |
|---|---|---|
HttpDigestAuthProvider.Builder |
addDigestQop(HttpDigest.Qop qop) |
Digest QOP to support.
|
HttpDigestAuthProvider |
build() |
Build the instance from this builder.
|
HttpDigestAuthProvider.Builder |
digestAlgorithm(HttpDigest.Algorithm algorithm) |
Digest algorithm to use.
|
HttpDigestAuthProvider.Builder |
digestNonceTimeout(long duration,
java.util.concurrent.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(java.lang.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 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(java.lang.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, java.util.concurrent.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, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.