public class PersonaAuthorizer extends BaseAuthorizer implements SessionCookieAuthorizer
LoginAuthorizer.ContinuationBlock| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ASSERTION_FIELD_EMAIL |
static java.lang.String |
ASSERTION_FIELD_EXPIRATION |
static java.lang.String |
ASSERTION_FIELD_ORIGIN |
static java.lang.String |
TAG |
| Constructor and Description |
|---|
PersonaAuthorizer(java.lang.String email) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
assertionForEmailAndSite(java.lang.String email,
java.net.URL site) |
java.lang.String |
getEmailAddress() |
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.
|
static java.lang.String |
registerAssertion(java.lang.String assertion) |
void |
setEmailAddress(java.lang.String email) |
getLocalUUID, getRemoteURL, getUsername, removeStoredCredentials, setLocalUUID, setRemoteURLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocalUUID, getRemoteURL, getUsername, removeStoredCredentials, setLocalUUID, setRemoteURLpublic static final java.lang.String TAG
public static final java.lang.String ASSERTION_FIELD_EMAIL
public static final java.lang.String ASSERTION_FIELD_ORIGIN
public static final java.lang.String ASSERTION_FIELD_EXPIRATION
public java.util.List<java.lang.Object> loginRequest()
LoginAuthorizerloginRequest in interface LoginAuthorizerpublic void loginResponse(java.lang.Object jsonResponse,
Headers headers,
java.lang.Throwable error,
LoginAuthorizer.ContinuationBlock block)
LoginAuthorizerloginResponse in interface LoginAuthorizerjsonResponse - 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.public boolean implementedLoginResponse()
implementedLoginResponse in interface LoginAuthorizerpublic java.lang.String getEmailAddress()
public void setEmailAddress(java.lang.String email)
public static java.lang.String registerAssertion(java.lang.String assertion)
public static java.lang.String assertionForEmailAndSite(java.lang.String email,
java.net.URL site)