public class AuthenticationApi extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AuthenticationApi.LoginOptions |
| Constructor and Description |
|---|
AuthenticationApi() |
AuthenticationApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSocialLogin(String accountId,
String userId,
SocialAccountInformation socialAccountInformation)
Deletes user's social account.
|
ApiClient |
getApiClient() |
OauthAccess |
getOAuthToken()
Creates an authorization token.
|
UserSocialIdResult |
listSocialLogins(String accountId,
String userId)
Gets a list of a user's social accounts.
|
LoginInformation |
login()
Gets login information for a specified user.
|
LoginInformation |
login(AuthenticationApi.LoginOptions options)
Gets login information for a specified user.
|
void |
revokeOAuthToken()
Revokes an authorization token.
|
void |
setApiClient(ApiClient apiClient) |
void |
updatePassword(String loginPart,
UserPasswordInformation userPasswordInformation)
Updates the password for a specified user.
|
void |
updateSocialLogin(String accountId,
String userId,
SocialAccountInformation socialAccountInformation)
Adds social account for a user.
|
public AuthenticationApi()
public AuthenticationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public UserSocialIdResult listSocialLogins(String accountId, String userId) throws ApiException
accountId - The external account number (int) or account ID Guid.userId - The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing.AuthenticationApi.ListSocialLoginsOptions - Options for modifying the method behavior.ApiExceptionpublic void updateSocialLogin(String accountId, String userId, SocialAccountInformation socialAccountInformation) throws ApiException
accountId - The external account number (int) or account ID Guid.userId - The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing.AuthenticationApi.UpdateSocialLoginOptions - Options for modifying the method behavior.ApiExceptionpublic void deleteSocialLogin(String accountId, String userId, SocialAccountInformation socialAccountInformation) throws ApiException
accountId - The external account number (int) or account ID Guid.userId - The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing.AuthenticationApi.DeleteSocialLoginOptions - Options for modifying the method behavior.ApiExceptionpublic LoginInformation login() throws ApiException
ApiExceptionpublic LoginInformation login(AuthenticationApi.LoginOptions options) throws ApiException
AuthenticationApi.LoginOptions - Options for modifying the method behavior.ApiExceptionpublic void updatePassword(String loginPart, UserPasswordInformation userPasswordInformation) throws ApiException
loginPart - Currently, only the value **password** is supported.AuthenticationApi.UpdatePasswordOptions - Options for modifying the method behavior.ApiExceptionpublic void revokeOAuthToken()
throws ApiException
AuthenticationApi.RevokeOAuthTokenOptions - Options for modifying the method behavior.ApiExceptionpublic OauthAccess getOAuthToken() throws ApiException
AuthenticationApi.GetOAuthTokenOptions - Options for modifying the method behavior.ApiExceptionCopyright © 2017. All rights reserved.