Package com.jumio.sdk.oauth2.api
Class OAuth2ClientApi
java.lang.Object
com.jumio.sdk.oauth2.api.OAuth2ClientApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-05-09T15:46:41.632885300+02:00[Europe/Vienna]")
public class OAuth2ClientApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(String grantType) Retrieves an OAuth2 tokenorg.springframework.http.ResponseEntity<OAuth2Response>
authenticateWithHttpInfo
(String grantType) Retrieves an OAuth2 tokenvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
OAuth2ClientApi
public OAuth2ClientApi() -
OAuth2ClientApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
authenticate
public OAuth2Response authenticate(String grantType) throws org.springframework.web.client.RestClientException Retrieves an OAuth2 token200 - OK
401 - Unauthorized
- Parameters:
grantType
- (optional)- Returns:
- OAuth2Response
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-
authenticateWithHttpInfo
public org.springframework.http.ResponseEntity<OAuth2Response> authenticateWithHttpInfo(String grantType) throws org.springframework.web.client.RestClientException Retrieves an OAuth2 token200 - OK
401 - Unauthorized
- Parameters:
grantType
- (optional)- Returns:
- ResponseEntity<OAuth2Response>
- Throws:
org.springframework.web.client.RestClientException
- if an error occurs while attempting to invoke the API
-