Package org.eclipse.jetty.client.util
Class DigestAuthentication.DigestResult
java.lang.Object
org.eclipse.jetty.client.util.DigestAuthentication.DigestResult
- All Implemented Interfaces:
Authentication.Result
- Enclosing class:
DigestAuthentication
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Charsetprivate final HttpHeaderprivate final Stringprivate final AtomicIntegerprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final Stringprivate final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDigestResult(HttpHeader header, String realm, String user, String password, String algorithm, String nonce, String qop, String opaque, Charset charset, boolean userHash) -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the authentication result to the given request.private StringencodeUserName(String user, Charset charset) getURI()private Stringprivate Stringprivate byte[]strictEncode(Charset charset, String value) private StringtoHexString(byte[] bytes) private booleanuserNameNeedsEncoding(String user)
-
Field Details
-
nonceCount
-
header
-
realm
-
user
-
password
-
algorithm
-
nonce
-
qop
-
opaque
-
charset
-
userHash
private final boolean userHash
-
-
Constructor Details
-
DigestResult
-
-
Method Details
-
getURI
- Specified by:
getURIin interfaceAuthentication.Result- Returns:
- the URI of the request that has been used to generate this
Authentication.Result
-
apply
Description copied from interface:Authentication.ResultApplies the authentication result to the given request. Typically, aAuthorizationheader is added to the request, with the right information to successfully authenticate at the server.- Specified by:
applyin interfaceAuthentication.Result- Parameters:
request- the request to authenticate
-
strictEncode
-
userNameNeedsEncoding
-
encodeUserName
-
nextNonceCount
-
newClientNonce
-
toHexString
-