public class HttpAuth
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpAuth.Type |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthorizationHeader(java.lang.String method,
java.lang.String uri,
byte[] requestBody)
Get authorization header based on the last-received server nonce.
|
void |
processAuthenticateHeaders(java.util.Map<HttpAuth.Type,java.lang.String> authenticateHeaders)
Process a challenge; this selects the auth type to use and caches all
possible values based on the challenge in the case of digest auth
|
static java.util.Map<HttpAuth.Type,java.lang.String> |
sortAuthenticateHeaders(java.util.Collection<java.lang.String> authenticateHeaders)
Split a compound authenticate header string to get details for each auth type
|
public static java.util.Map<HttpAuth.Type,java.lang.String> sortAuthenticateHeaders(java.util.Collection<java.lang.String> authenticateHeaders) throws AblyException
authenticateHeaders - AblyExceptionpublic java.lang.String getAuthorizationHeader(java.lang.String method,
java.lang.String uri,
byte[] requestBody)
throws AblyException
method - uri - requestBody - AblyExceptionpublic void processAuthenticateHeaders(java.util.Map<HttpAuth.Type,java.lang.String> authenticateHeaders) throws AblyException
authenticateHeaders - AblyException