java.lang.Object | ||||
↳ | java.util.AbstractMap<K, V> | |||
↳ | com.google.api.client.util.GenericData | |||
↳ | com.google.api.client.json.GenericJson | |||
↳ | com.kinvey.java.User |
This class is not thread-safe.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | User.Delete | Delete Request Class, extends AbstractKinveyJsonClientRequest |
|||||||||
class | User.EmailVerification | EmailVerification Request Class, extends AbstractKinveyJsonClientRequest |
|||||||||
class | User.LoginRequest | Login Request Class. | |||||||||
class | User.LogoutRequest | Logout Request Class. | |||||||||
class | User.ResetPassword | ResetPassword Request Class, extends AbstractKinveyJsonClientRequest |
|||||||||
class | User.Retrieve<T> | Retrieve Request Class, extends AbstractKinveyJsonClientRequest |
|||||||||
class | User.Update | Update Request Class, extends AbstractKinveyJsonClientRequest |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | USER_COLLECTION_NAME |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
User() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
User.LoginRequest |
create(String userid, String password)
This method is deprecated.
Renamed to
createBlocking(String, String)
| ||||||||||
User.LoginRequest |
createBlocking(String userid, String password)
Creates an explicit Kinvey User.
| ||||||||||
User.Delete |
delete(boolean hardDelete)
This method is deprecated.
Renamed to
deleteBlocking(boolean)
| ||||||||||
User.Delete |
deleteBlocking(boolean hardDelete)
Delete's the given user from the server.
| ||||||||||
String | getAuthToken() | ||||||||||
String | getId() | ||||||||||
String | getUsername() | ||||||||||
boolean |
isUserLoggedIn()
Method to determine if the current user instnace represents a logged-in user
| ||||||||||
User.LoginRequest |
login()
This method is deprecated.
Renamed to
loginBlocking()
| ||||||||||
User.LoginRequest |
login(Credential credential)
Log in with existing credential
| ||||||||||
User.LoginRequest |
login(String username, String password)
This method is deprecated.
Renamed to
loginBlocking()
| ||||||||||
User.LoginRequest | loginAuthLinkBlocking(String accessToken, String refreshToken) | ||||||||||
User.LoginRequest |
loginBlocking()
Login with the implicit user.
| ||||||||||
User.LoginRequest |
loginBlocking(String username, String password)
Login with Kinvey user and password.
| ||||||||||
User.LoginRequest |
loginFacebook(String accessToken)
This method is deprecated.
Renamed to
loginFacebookBlocking(String)
| ||||||||||
User.LoginRequest |
loginFacebookBlocking(String accessToken)
Login to Kinvey services using Facebook access token obtained through OAuth2.
| ||||||||||
User.LoginRequest |
loginGoogle(String accessToken)
This method is deprecated.
Renamed to
loginGoogleBlocking(String)
| ||||||||||
User.LoginRequest |
loginGoogleBlocking(String accessToken)
Login to Kinvey services using Google access token obtained through OAuth2.
| ||||||||||
User.LoginRequest |
loginLinkedIn(String accessToken, String accessSecret, String consumerKey, String consumerSecret)
This method is deprecated.
Renamed to
loginLinkedInBlocking(String, String, String, String)
| ||||||||||
User.LoginRequest |
loginLinkedInBlocking(String accessToken, String accessSecret, String consumerKey, String consumerSecret)
Login to Kinvey services using LinkedIn-generated access token, access secret, consumer key, and consumer secret
obtained through OAuth1a.
| ||||||||||
User.LoginRequest |
loginSalesForceBlocking(String accessToken, String Clientid, String refreshToken, String id)
Login to Kinvey services using SalesForce access token obtained through OAuth2.
| ||||||||||
User.LoginRequest |
loginTwitter(String accessToken, String accessSecret, String consumerKey, String consumerSecret)
This method is deprecated.
Renamed to
loginTwitterBlocking(String, String, String, String)
| ||||||||||
User.LoginRequest |
loginTwitterBlocking(String accessToken, String accessSecret, String consumerKey, String consumerSecret)
Login to Kinvey services using Twitter-generated access token, access secret, consumer key, and consumer secret
obtained through OAuth1a.
| ||||||||||
User.LogoutRequest |
logout()
Logs the user out of the current app
| ||||||||||
User.ResetPassword |
resetPassword()
This method is deprecated.
Renamed to
resetPasswordBlocking(String)
| ||||||||||
User.ResetPassword |
resetPasswordBlocking(String username)
Initiates a password reset request for a provided username
| ||||||||||
Retrieve<User> |
retrieve()
This method is deprecated.
Renamed to
retrieveBlocking()
| ||||||||||
Retrieve<User[]> |
retrieve(Query query)
This method is deprecated.
Renamed to
retrieveBlocking(Query)
| ||||||||||
Retrieve<User> |
retrieveBlocking()
Retrieves current user profile metadata.
| ||||||||||
Retrieve<User[]> |
retrieveBlocking(Query query)
Retrieves an array of User[] based on a Query.
| ||||||||||
User.EmailVerification |
sendEmailVerification()
This method is deprecated.
Renamed to
sendEmailVerificationBlocking()
| ||||||||||
User.EmailVerification |
sendEmailVerificationBlocking()
Initiates an EmailVerification request for the current user
| ||||||||||
void | setAuthToken(String authToken) | ||||||||||
void | setId(String id) | ||||||||||
void | setUsername(String username) | ||||||||||
User.Update |
update()
This method is deprecated.
Renamed to
updateBlocking()
| ||||||||||
User.Update |
updateBlocking()
Updates the current user's profile
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
This method is deprecated.
Renamed to createBlocking(String, String)
Creates an explicit Kinvey User.
userid | userID of Kinvey user |
---|---|
password | password of Kinvey user |
IOException | |
IOException |
Creates an explicit Kinvey User.
userid | userID of Kinvey user |
---|---|
password | password of Kinvey user |
IOException |
---|
This method is deprecated.
Renamed to deleteBlocking(boolean)
Delete's the given user from the server.
hardDelete | if true, physically deletes the user. If false, marks user as inactive. |
---|
IOException | |
IOException |
Delete's the given user from the server.
hardDelete | if true, physically deletes the user. If false, marks user as inactive. |
---|
IOException |
---|
Method to determine if the current user instnace represents a logged-in user
This method is deprecated.
Renamed to loginBlocking()
Login with the implicit user. If implicit user does not exist, the user is created. After calling this method, the application should retrieve and store the userID using getId()
IOException | |
IOException |
Log in with existing credential
IOException |
---|
This method is deprecated.
Renamed to loginBlocking()
Login with Kinvey user and password. If user does not exist, returns a error response.
username | userID of Kinvey User |
---|---|
password | password of Kinvey user |
IOException | |
IOException |
IOException |
---|
Login with the implicit user. If implicit user does not exist, the user is created. After calling this method, the application should retrieve and store the userID using getId()
IOException |
---|
Login with Kinvey user and password. If user does not exist, returns a error response.
username | userID of Kinvey User |
---|---|
password | password of Kinvey user |
IOException |
---|
This method is deprecated.
Renamed to loginFacebookBlocking(String)
Login to Kinvey services using Facebook access token obtained through OAuth2. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Facebook-generated access token. |
---|
IOException | |
IOException |
Login to Kinvey services using Facebook access token obtained through OAuth2. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Facebook-generated access token. |
---|
IOException |
---|
This method is deprecated.
Renamed to loginGoogleBlocking(String)
Login to Kinvey services using Google access token obtained through OAuth2. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Google-generated access token |
---|
IOException | |
IOException |
Login to Kinvey services using Google access token obtained through OAuth2. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Google-generated access token |
---|
IOException |
---|
This method is deprecated.
Renamed to loginLinkedInBlocking(String, String, String, String)
Login to Kinvey services using LinkedIn-generated access token, access secret, consumer key, and consumer secret obtained through OAuth1a. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Linked In generated access token |
---|---|
accessSecret | Linked In generated access secret |
consumerKey | Linked In generated consumer key |
consumerSecret | Linked In generated consumer secret |
IOException | |
IOException |
Login to Kinvey services using LinkedIn-generated access token, access secret, consumer key, and consumer secret obtained through OAuth1a. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Linked In generated access token |
---|---|
accessSecret | Linked In generated access secret |
consumerKey | Linked In generated consumer key |
consumerSecret | Linked In generated consumer secret |
IOException |
---|
Login to Kinvey services using SalesForce access token obtained through OAuth2. If the user does not exist in the Kinvey service, the user will be created.
accessToken | SalesForce-generated access token |
---|
IOException |
---|
This method is deprecated.
Renamed to loginTwitterBlocking(String, String, String, String)
Login to Kinvey services using Twitter-generated access token, access secret, consumer key, and consumer secret obtained through OAuth1a. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Twitter-generated access token |
---|---|
accessSecret | Twitter-generated access secret |
consumerKey | Twitter-generated consumer key |
consumerSecret | Twitter-generated consumer secret |
IOException | |
IOException |
Login to Kinvey services using Twitter-generated access token, access secret, consumer key, and consumer secret obtained through OAuth1a. If the user does not exist in the Kinvey service, the user will be created.
accessToken | Twitter-generated access token |
---|---|
accessSecret | Twitter-generated access secret |
consumerKey | Twitter-generated consumer key |
consumerSecret | Twitter-generated consumer secret |
IOException |
---|
Logs the user out of the current app
IOException |
---|
This method is deprecated.
Renamed to resetPasswordBlocking(String)
Initiates a password reset request for the current user
IOException | |
IOException |
Initiates a password reset request for a provided username
username | the username to request a password reset for |
---|
IOException |
---|
This method is deprecated.
Renamed to retrieveBlocking()
Retrieves current user profile metadata.
IOException | |
IOException |
This method is deprecated.
Renamed to retrieveBlocking(Query)
Retrieves an array of User[] based on a Query.
IOException | |
IOException |
Retrieves current user profile metadata.
IOException |
---|
Retrieves an array of User[] based on a Query.
IOException |
---|
This method is deprecated.
Renamed to sendEmailVerificationBlocking()
Initiates an EmailVerification request for the current user
IOException | |
IOException |
Initiates an EmailVerification request for the current user
IOException |
---|
This method is deprecated.
Renamed to updateBlocking()
Updates the current user's profile
IOException | |
IOException |
Updates the current user's profile
IOException |
---|