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 void deleteSocialLogin(String accountId, String userId, SocialAccountInformation socialAccountInformation) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)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. (required)socialAccountInformation
- (optional)ApiException
- if fails to make API callpublic OauthAccess getOAuthToken() throws ApiException
ApiException
- if fails to make API callpublic UserSocialIdResult listSocialLogins(String accountId, String userId) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)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. (required)ApiException
- if fails to make API callpublic LoginInformation login() throws ApiException
ApiException
public LoginInformation login(AuthenticationApi.LoginOptions options) throws ApiException
AuthenticationApi.LoginOptions
- Options for modifying the method behavior.ApiException
- if fails to make API callpublic void revokeOAuthToken() throws ApiException
ApiException
- if fails to make API callpublic void updatePassword(String loginPart, UserPasswordInformation userPasswordInformation) throws ApiException
loginPart
- Currently, only the value **password** is supported. (required)userPasswordInformation
- (optional)ApiException
- if fails to make API callpublic void updateSocialLogin(String accountId, String userId, SocialAccountInformation socialAccountInformation) throws ApiException
accountId
- The external account number (int) or account ID Guid. (required)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. (required)socialAccountInformation
- (optional)ApiException
- if fails to make API callCopyright © 2017. All rights reserved.