public interface LoginAuthorizer extends Authorizer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LoginAuthorizer.ContinuationBlock |
| Modifier and Type | Method and Description |
|---|---|
boolean |
implementedLoginResponse() |
java.util.List<java.lang.Object> |
loginRequest()
Returns the HTTP method, URL, and body of the login request to send, or nil for no login.
|
void |
loginResponse(java.lang.Object jsonResponse,
Headers headers,
java.lang.Throwable error,
LoginAuthorizer.ContinuationBlock block)
The replicator calls this method with the response to the login request.
|
getLocalUUID, getRemoteURL, getUsername, removeStoredCredentials, setLocalUUID, setRemoteURLjava.util.List<java.lang.Object> loginRequest()
void loginResponse(java.lang.Object jsonResponse,
Headers headers,
java.lang.Throwable error,
LoginAuthorizer.ContinuationBlock block)
jsonResponse - The parsed JSON body of the response.headers - The HTTP response headers.error - The error, if the request failed.block - The authorizer must call this block at some future time. If the
`loginAgain` parameter is YES, the login will be repeated, with another call to
-loginRequestForSite:. If the NSError* parameter is non-nil, replication stops.boolean implementedLoginResponse()