private class DigestAuthentication.DigestResult extends java.lang.Object implements Authentication.Result
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
algorithm |
private byte[] |
content |
private HttpHeader |
header |
private java.lang.String |
nonce |
private java.util.concurrent.atomic.AtomicInteger |
nonceCount |
private java.lang.String |
opaque |
private java.lang.String |
password |
private java.lang.String |
qop |
private java.lang.String |
realm |
private java.lang.String |
user |
| Constructor and Description |
|---|
DigestResult(HttpHeader header,
byte[] content,
java.lang.String realm,
java.lang.String user,
java.lang.String password,
java.lang.String algorithm,
java.lang.String nonce,
java.lang.String qop,
java.lang.String opaque) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Request request)
Applies the authentication result to the given request.
|
java.net.URI |
getURI() |
private java.lang.String |
newClientNonce() |
private java.lang.String |
nextNonceCount() |
private java.lang.String |
toHexString(byte[] bytes) |
private final java.util.concurrent.atomic.AtomicInteger nonceCount
private final HttpHeader header
private final byte[] content
private final java.lang.String realm
private final java.lang.String user
private final java.lang.String password
private final java.lang.String algorithm
private final java.lang.String nonce
private final java.lang.String qop
private final java.lang.String opaque
public DigestResult(HttpHeader header, byte[] content, java.lang.String realm, java.lang.String user, java.lang.String password, java.lang.String algorithm, java.lang.String nonce, java.lang.String qop, java.lang.String opaque)
public java.net.URI getURI()
getURI in interface Authentication.ResultResultpublic void apply(Request request)
Authentication.ResultAuthorization header is added to the request, with the right information to
successfully authenticate at the server.apply in interface Authentication.Resultrequest - the request to authenticateprivate java.lang.String nextNonceCount()
private java.lang.String newClientNonce()
private java.lang.String toHexString(byte[] bytes)