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 Details

    • AuthenticationApi

      public AuthenticationApi()
    • AuthenticationApi

      public AuthenticationApi(ApiClient apiClient)
  • Method Details

    • getApiException

      protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException
      Throws:
      IOException
    • downloadFileFromResponse

      public File downloadFileFromResponse(HttpResponse<InputStream> response) throws ApiException
      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 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)
      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 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)
      headers - Optional headers to include in the request
      Returns:
      ApiResponse<UserApiAuthorizationsResponse>
      Throws:
      ApiException - if fails to make API call