public class IdentityClient extends AbstractClient
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTITY_BASE_URL |
accessToken, builder, httpClient| Constructor and Description |
|---|
IdentityClient()
Create a new instance of IdentityClient
|
IdentityClient(String baseUrl)
Create a new instance of IdentityClient
|
| Modifier and Type | Method and Description |
|---|---|
ValidatedIdentity |
confirm(String actionId,
String confirmationCode)
Confirms the identity from the verify step to obtain an identity confirmation token.
|
void |
confirm(String actionId,
String confirmationCode,
ResponseCallback<ValidatedIdentity> callback)
Confirms the identity from the verify step to obtain an identity confirmation token.
|
ValidatedIdentity |
confirm(String actionId,
String confirmationCode,
Token confirmationToken)
Confirms the identity from the verify step to obtain an identity confirmation token.
|
void |
confirm(String actionId,
String confirmationCode,
Token confirmationToken,
ResponseCallback<ValidatedIdentity> callback)
Confirms the identity from the verify step to obtain an identity confirmation token.
|
boolean |
validate(ValidatedIdentity identity)
Validates the passed token.
|
void |
validate(ValidatedIdentity identity,
VoidResponseCallback callback)
Validates the passed token.
|
String |
verify(String type,
String value)
Verify identity.
|
void |
verify(String type,
String value,
ResponseCallback<Action> callback)
Verify identity.
|
createService, handleResponsepublic static final String IDENTITY_BASE_URL
public IdentityClient()
public IdentityClient(String baseUrl)
baseUrl - public String verify(String type, String value)
type - The type of verified identity.value - The value of verified identity.public void verify(String type, String value, ResponseCallback<Action> callback) throws IOException
type - The type of verified identity.value - The value of verified identity.callback - IOExceptionpublic ValidatedIdentity confirm(String actionId, String confirmationCode)
actionId - the action identifier.confirmationCode - the confirmation code.ServiceExceptionpublic ValidatedIdentity confirm(String actionId, String confirmationCode, Token confirmationToken)
actionId - the action identifier.confirmationCode - the confirmation code.confirmationToken - the confirmation token.ServiceExceptionpublic void confirm(String actionId, String confirmationCode, ResponseCallback<ValidatedIdentity> callback) throws IOException
actionId - the action identifier.confirmationCode - the confirmation code.callback - the retrofit callback.IOExceptionpublic void confirm(String actionId, String confirmationCode, Token confirmationToken, ResponseCallback<ValidatedIdentity> callback) throws IOException
actionId - the action identifier.confirmationCode - the confirmation code.confirmationToken - the confirmation token.callback - the retrofit callback.IOExceptionpublic boolean validate(ValidatedIdentity identity)
identity - the identity for validation. The token should be
defined.true if identity validated.public void validate(ValidatedIdentity identity, VoidResponseCallback callback) throws IOException
identity - the identity for validation. The token should be
defined.callback - the retrofit callback.IOExceptionCopyright © 2016. All rights reserved.