-
public class HttpAuth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumHttpAuth.Type
-
Method Summary
Modifier and Type Method Description static Map<HttpAuth.Type, String>sortAuthenticateHeaders(Collection<String> authenticateHeaders)Split a compound authenticate header string to get details for each auth type StringgetAuthorizationHeader(String method, String uri, Array<byte> requestBody)Get authorization header based on the last-received server nonce. voidprocessAuthenticateHeaders(Map<HttpAuth.Type, String> authenticateHeaders)Process a challenge; this selects the auth type to use and caches allpossible values based on the challenge in the case of digest auth -
-
Method Detail
-
sortAuthenticateHeaders
static Map<HttpAuth.Type, String> sortAuthenticateHeaders(Collection<String> authenticateHeaders)
Split a compound authenticate header string to get details for each auth type
-
getAuthorizationHeader
String getAuthorizationHeader(String method, String uri, Array<byte> requestBody)
Get authorization header based on the last-received server nonce.This increments nc, and generates a new cnonce
-
processAuthenticateHeaders
void processAuthenticateHeaders(Map<HttpAuth.Type, String> authenticateHeaders)
Process a challenge; this selects the auth type to use and caches allpossible values based on the challenge in the case of digest auth
-
-
-
-