Class IdUClientProtocolHandler1
java.lang.Object
com.io7m.idstore.user_client.internal.IdUClientProtocolHandlerAbstract
com.io7m.idstore.user_client.internal.IdUClientProtocolHandler1
- All Implemented Interfaces:
IdUClientUsersType,IdUClientProtocolHandlerType
The version 1 protocol handler.
-
Constructor Summary
ConstructorsConstructorDescriptionIdUClientProtocolHandler1(HttpClient inHttpClient, IdUStrings inStrings, URI inBase) The version 1 protocol handler. -
Method Summary
Modifier and TypeMethodDescriptionAttempt to log in.voiduserEmailAddBegin(IdEmail email) Start adding the given email address to the current user.voiduserEmailAddDeny(IdToken token) Reject a challenge that adds an email address to the given user.voiduserEmailAddPermit(IdToken token) Complete a challenge that adds an email address to the given user.voiduserEmailRemoveBegin(IdEmail email) Start removing the given email address to the current user.voiduserEmailRemoveDeny(IdToken token) Reject a challenge that removes an email address to the given user.voiduserEmailRemovePermit(IdToken token) Complete a challenge that removes an email address to the given user.voiduserPasswordUpdate(String password, String passwordConfirm) Update the user's password.voiduserRealNameUpdate(IdRealName realName) Update the user's realname.userSelf()Retrieve the current user profile.Methods inherited from class com.io7m.idstore.user_client.internal.IdUClientProtocolHandlerAbstract
base, httpClient, strings
-
Constructor Details
-
IdUClientProtocolHandler1
The version 1 protocol handler.- Parameters:
inHttpClient- The HTTP clientinStrings- The string resourcesinBase- The base URI
-
-
Method Details
-
login
public IdUNewHandler login(String user, String password, URI base) throws IdUClientException, InterruptedException Description copied from interface:IdUClientProtocolHandlerTypeAttempt to log in.- Parameters:
user- The userpassword- The passwordbase- The base URI- Returns:
- A new protocol handler
- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userSelf
Description copied from interface:IdUClientUsersTypeRetrieve the current user profile.- Returns:
- The current user
- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userEmailAddBegin
Description copied from interface:IdUClientUsersTypeStart adding the given email address to the current user.- Parameters:
email- The email address- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userEmailAddPermit
Description copied from interface:IdUClientUsersTypeComplete a challenge that adds an email address to the given user.- Parameters:
token- The challenge token- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userEmailAddDeny
Description copied from interface:IdUClientUsersTypeReject a challenge that adds an email address to the given user.- Parameters:
token- The challenge token- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userEmailRemoveBegin
Description copied from interface:IdUClientUsersTypeStart removing the given email address to the current user.- Parameters:
email- The email address- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userEmailRemovePermit
Description copied from interface:IdUClientUsersTypeComplete a challenge that removes an email address to the given user.- Parameters:
token- The challenge token- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userEmailRemoveDeny
Description copied from interface:IdUClientUsersTypeReject a challenge that removes an email address to the given user.- Parameters:
token- The challenge token- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userRealNameUpdate
Description copied from interface:IdUClientUsersTypeUpdate the user's realname.- Parameters:
realName- The new realname- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-
userPasswordUpdate
public void userPasswordUpdate(String password, String passwordConfirm) throws IdUClientException, InterruptedException Description copied from interface:IdUClientUsersTypeUpdate the user's password.- Parameters:
password- The passwordpasswordConfirm- The password confirmation- Throws:
IdUClientException- On errorsInterruptedException- On interruption
-