Package com.veeroute.lss.account.api
Class AuthApi
java.lang.Object
com.veeroute.lss.account.api.AuthApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangePassword(PasswordChangeRequest passwordChangeRequest) Change password Change password and get new token.okhttp3.CallchangePasswordAsync(PasswordChangeRequest passwordChangeRequest, ApiCallback<String> _callback) Change password (asynchronously) Change password and get new token.okhttp3.CallchangePasswordCall(PasswordChangeRequest passwordChangeRequest, ApiCallback _callback) Build call for changePasswordchangePasswordWithHttpInfo(PasswordChangeRequest passwordChangeRequest) Change password Change password and get new token.intrunTokenGeneration(TokenRequest tokenRequest) Obtaining a token Obtaining a token using the login and password.okhttp3.CallrunTokenGenerationAsync(TokenRequest tokenRequest, ApiCallback<String> _callback) Obtaining a token (asynchronously) Obtaining a token using the login and password.okhttp3.CallrunTokenGenerationCall(TokenRequest tokenRequest, ApiCallback _callback) Build call for runTokenGenerationrunTokenGenerationWithHttpInfo(TokenRequest tokenRequest) Obtaining a token Obtaining a token using the login and password.runTokenValidation(String body) Validating a token Validating a token.okhttp3.CallrunTokenValidationAsync(String body, ApiCallback<TokenValidationResult> _callback) Validating a token (asynchronously) Validating a token.okhttp3.CallrunTokenValidationCall(String body, ApiCallback _callback) Build call for runTokenValidationValidating a token Validating a token.voidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex)
-
Constructor Details
-
AuthApi
public AuthApi() -
AuthApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
changePasswordCall
public okhttp3.Call changePasswordCall(@Nullable PasswordChangeRequest passwordChangeRequest, ApiCallback _callback) throws ApiException Build call for changePassword- Parameters:
passwordChangeRequest- Password change request data. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Successful execution - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
changePassword
public String changePassword(@Nullable PasswordChangeRequest passwordChangeRequest) throws ApiException Change password Change password and get new token.- Parameters:
passwordChangeRequest- Password change request data. (optional)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Successful execution - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
changePasswordWithHttpInfo
public ApiResponse<String> changePasswordWithHttpInfo(@Nullable PasswordChangeRequest passwordChangeRequest) throws ApiException Change password Change password and get new token.- Parameters:
passwordChangeRequest- Password change request data. (optional)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Successful execution - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
changePasswordAsync
public okhttp3.Call changePasswordAsync(@Nullable PasswordChangeRequest passwordChangeRequest, ApiCallback<String> _callback) throws ApiException Change password (asynchronously) Change password and get new token.- Parameters:
passwordChangeRequest- Password change request data. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Successful execution - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenGenerationCall
public okhttp3.Call runTokenGenerationCall(@Nonnull TokenRequest tokenRequest, ApiCallback _callback) throws ApiException Build call for runTokenGeneration- Parameters:
tokenRequest- Token request. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Token created successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenGeneration
Obtaining a token Obtaining a token using the login and password.- Parameters:
tokenRequest- Token request. (required)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Token created successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenGenerationWithHttpInfo
public ApiResponse<String> runTokenGenerationWithHttpInfo(@Nonnull TokenRequest tokenRequest) throws ApiException Obtaining a token Obtaining a token using the login and password.- Parameters:
tokenRequest- Token request. (required)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Token created successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenGenerationAsync
public okhttp3.Call runTokenGenerationAsync(@Nonnull TokenRequest tokenRequest, ApiCallback<String> _callback) throws ApiException Obtaining a token (asynchronously) Obtaining a token using the login and password.- Parameters:
tokenRequest- Token request. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Token created successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenValidationCall
public okhttp3.Call runTokenValidationCall(@Nonnull String body, ApiCallback _callback) throws ApiException Build call for runTokenValidation- Parameters:
body- Token validate request. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Data validation completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenValidation
Validating a token Validating a token.- Parameters:
body- Token validate request. (required)- Returns:
- TokenValidationResult
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Data validation completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenValidationWithHttpInfo
public ApiResponse<TokenValidationResult> runTokenValidationWithHttpInfo(@Nonnull String body) throws ApiException Validating a token Validating a token.- Parameters:
body- Token validate request. (required)- Returns:
- ApiResponse<TokenValidationResult>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Response Details Status Code Description Response Headers 200 Data validation completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-
runTokenValidationAsync
public okhttp3.Call runTokenValidationAsync(@Nonnull String body, ApiCallback<TokenValidationResult> _callback) throws ApiException Validating a token (asynchronously) Validating a token.- Parameters:
body- Token validate request. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Response Details Status Code Description Response Headers 200 Data validation completed successfully - 400 Bad request - input data contains errors - 401 Unauthorized - incorrect authorization details, token is missing or invalid - 402 Payment Required - 403 Forbidden - no permission to execute this operation - 404 Not found - 405 Method not allowed, check method (POST, GET, ...) - 406 Client is unable to process a format of response, check headers - 415 Unsupported media type, check headers - 429 Too many requests - 431 Request header fields too large - 500 Internal server error - 501 Not implemented - 502 Bad gateway - 503 Service unavailable - 504 Gateway timeout - 0 Service unavailable -
-