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
Gets a list of a user's social accounts. Retrieves a list of social accounts linked to a user's account.
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
Adds social account for a user. Adds a new social account to a user's account.
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
Deletes user's social account. Deletes a social account from a use's account.
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
Gets login information for a specified user. Retrieves login information for a specified user. Each account that is associated with the login credentials is listed. You can use the returned information to determine whether a user is authenticated and select an account to use in future operations. \n\nThe baseUrl property, returned in the response, is used in all future API calls as the base of the request URL. The baseUrl property contains the DocuSign server, the API version, and the accountId property that is used for the login. This request uses your DocuSign credentials to retrieve the account information.
ApiExceptionpublic LoginInformation login(AuthenticationApi.LoginOptions options) throws ApiException
Gets login information for a specified user. Retrieves login information for a specified user. Each account that is associated with the login credentials is listed. You can use the returned information to determine whether a user is authenticated and select an account to use in future operations. \n\nThe baseUrl property, returned in the response, is used in all future API calls as the base of the request URL. The baseUrl property contains the DocuSign server, the API version, and the accountId property that is used for the login. This request uses your DocuSign credentials to retrieve the account information.
AuthenticationApi.LoginOptions - Options for modifying the method behavior.ApiExceptionpublic void updatePassword(String loginPart, UserPasswordInformation userPasswordInformation) throws ApiException
Updates the password for a specified user. Updates the password for a specified user.
loginPart - Currently, only the value password is supported.AuthenticationApi.UpdatePasswordOptions - Options for modifying the method behavior.ApiExceptionpublic void revokeOAuthToken()
throws ApiException
Revokes an authorization token. Revokes an OAuth2 authorization server token. After the revocation is complete, a caller must re-authenticate to restore access.
AuthenticationApi.RevokeOAuthTokenOptions - Options for modifying the method behavior.ApiExceptionpublic OauthAccess getOAuthToken() throws ApiException
Creates an authorization token. Creates an OAuth2 authorization server token endpoint.
AuthenticationApi.GetOAuthTokenOptions - Options for modifying the method behavior.ApiExceptionCopyright © 2017. All Rights Reserved.