@NotThreadSafe public class DigestAuthServerBuilder extends Object implements Serializable
CHttpHeader.WWW_AUTHENTICATE value send from
the server to client.| Constructor and Description |
|---|
DigestAuthServerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
DigestAuthServerBuilder |
addDomain(com.helger.commons.url.ISimpleURL aURL)
Add an URIs, as specified in RFC XURI, that define the protection space.
|
DigestAuthServerBuilder |
addQOP(String sQOP)
This directive is optional, but is made so only for backward compatibility
with RFC 2069 [6]; it SHOULD be used by all implementations compliant with
this version of the Digest scheme.
|
String |
build() |
boolean |
isValid() |
DigestAuthServerBuilder |
setAlgorithm(String sAlgorithm)
A string indicating a pair of algorithms used to produce the digest and a
checksum.
|
DigestAuthServerBuilder |
setNonce(String sNonce)
A server-specified data string which should be uniquely generated each time
a 401 response is made.
|
DigestAuthServerBuilder |
setOpaque(String sOpaque)
A string of data, specified by the server, which should be returned by the
client unchanged in the Authorization header of subsequent requests with
URIs in the same protection space.
|
DigestAuthServerBuilder |
setRealm(String sRealm)
A string to be displayed to users so they know which username and password
to use.
|
DigestAuthServerBuilder |
setStale(com.helger.commons.state.ETriState eStale)
A flag, indicating that the previous request from the client was rejected
because the nonce value was stale.
|
@Nonnull public DigestAuthServerBuilder setRealm(@Nonnull String sRealm)
sRealm - The realm to be used. May not be null and should not be
empty.@Nonnull public DigestAuthServerBuilder addDomain(@Nonnull com.helger.commons.url.ISimpleURL aURL)
aURL - The absolute or relative path which is protected. May not be
null.@Nonnull public DigestAuthServerBuilder setNonce(@Nonnull String sNonce)
sNonce - The nonce value to be set. May not be null.@Nonnull public DigestAuthServerBuilder setOpaque(@Nonnull String sOpaque)
sOpaque - The opaque value. May not be null.@Nonnull public DigestAuthServerBuilder setStale(@Nonnull com.helger.commons.state.ETriState eStale)
eStale - Stale value. May not be null.@Nonnull public DigestAuthServerBuilder setAlgorithm(@Nonnull String sAlgorithm)
sAlgorithm - Algorithm name@Nonnull public DigestAuthServerBuilder addQOP(@Nonnull String sQOP)
sQOP - The qop-option to add. May not be null.public boolean isValid()
Copyright © 2016–2019 Philip Helger. All rights reserved.