Class AuthenticationApi
java.lang.Object
fr.metabohub.users_apis_authorizations.client.AuthenticationApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-01-15T15:39:07.594482359Z[Etc/UTC]",
comments="Generator version: 7.17.0")
public class AuthenticationApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckUserApiAuthorization(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) Check if a token is valid, return token authorizations and user's roles for an API.checkUserApiAuthorization(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest, Map<String, String> headers) Check if a token is valid, return token authorizations and user's roles for an API.checkUserApiAuthorizationWithHttpInfo(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) Check if a token is valid, return token authorizations and user's roles for an API.checkUserApiAuthorizationWithHttpInfo(CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest, Map<String, String> headers) Check if a token is valid, return token authorizations and user's roles for an API.downloadFileFromResponse(HttpResponse<InputStream> response) Download file from the given response.protected ApiExceptiongetApiException(String operationId, HttpResponse<InputStream> response)
-
Constructor Details
-
AuthenticationApi
public AuthenticationApi() -
AuthenticationApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
downloadFileFromResponse
Download file from the given response.- Parameters:
response- Response- Returns:
- File
- Throws:
ApiException- If fail to read file content from response and write to disk
-
checkUserApiAuthorization
public UserApiAuthorizationsResponse checkUserApiAuthorization(@Nonnull CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) throws ApiException Check if a token is valid, return token authorizations and user's roles for an API. This endpoint is used par MetaboHUB's API to check if a provided token is valid. Furthermore it will return user's roles (User, Curator, Manager, Admin) for the provided API and token's authorizations (Create, Read, Update, Delete)- Parameters:
checkUserApiAuthorizationsRequest- (required)- Returns:
- UserApiAuthorizationsResponse
- Throws:
ApiException- if fails to make API call
-
checkUserApiAuthorization
public UserApiAuthorizationsResponse checkUserApiAuthorization(@Nonnull CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest, Map<String, String> headers) throws ApiExceptionCheck if a token is valid, return token authorizations and user's roles for an API. This endpoint is used par MetaboHUB's API to check if a provided token is valid. Furthermore it will return user's roles (User, Curator, Manager, Admin) for the provided API and token's authorizations (Create, Read, Update, Delete)- Parameters:
checkUserApiAuthorizationsRequest- (required)headers- Optional headers to include in the request- Returns:
- UserApiAuthorizationsResponse
- Throws:
ApiException- if fails to make API call
-
checkUserApiAuthorizationWithHttpInfo
public ApiResponse<UserApiAuthorizationsResponse> checkUserApiAuthorizationWithHttpInfo(@Nonnull CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest) throws ApiException Check if a token is valid, return token authorizations and user's roles for an API. This endpoint is used par MetaboHUB's API to check if a provided token is valid. Furthermore it will return user's roles (User, Curator, Manager, Admin) for the provided API and token's authorizations (Create, Read, Update, Delete)- Parameters:
checkUserApiAuthorizationsRequest- (required)- Returns:
- ApiResponse<UserApiAuthorizationsResponse>
- Throws:
ApiException- if fails to make API call
-
checkUserApiAuthorizationWithHttpInfo
public ApiResponse<UserApiAuthorizationsResponse> checkUserApiAuthorizationWithHttpInfo(@Nonnull CheckUserApiAuthorizationsRequest checkUserApiAuthorizationsRequest, Map<String, String> headers) throws ApiExceptionCheck if a token is valid, return token authorizations and user's roles for an API. This endpoint is used par MetaboHUB's API to check if a provided token is valid. Furthermore it will return user's roles (User, Curator, Manager, Admin) for the provided API and token's authorizations (Create, Read, Update, Delete)- Parameters:
checkUserApiAuthorizationsRequest- (required)headers- Optional headers to include in the request- Returns:
- ApiResponse<UserApiAuthorizationsResponse>
- Throws:
ApiException- if fails to make API call
-