Package com.okta.sdk.resource.api
Class ApplicationGrantsApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationGrantsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-03-29T16:47:02.065887-05:00[America/Chicago]",
comments="Generator version: 7.4.0")
public class ApplicationGrantsApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static com.fasterxml.jackson.databind.ObjectMapper
getScopeConsentGrant
(String appId, String grantId, String expand) Retrieve a Scope Consent Grant Retrieves a single scope consent grant for the applicationgetScopeConsentGrant
(String appId, String grantId, String expand, Map<String, String> additionalHeaders) Retrieve a Scope Consent Grant Retrieves a single scope consent grant for the applicationgrantConsentToScope
(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant) Grant Consent to Scope Grants consent for the application to request an OAuth 2.0 Okta scopegrantConsentToScope
(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant, Map<String, String> additionalHeaders) Grant Consent to Scope Grants consent for the application to request an OAuth 2.0 Okta scopelistScopeConsentGrants
(String appId, String expand) List all Scope Consent Grants Lists all scope consent grants for the applicationList all Scope Consent Grants Lists all scope consent grants for the applicationvoid
revokeScopeConsentGrant
(String appId, String grantId) Revoke a Scope Consent Grant Revokes permission for the application to request the given scopevoid
Revoke a Scope Consent Grant Revokes permission for the application to request the given scopevoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationGrantsApi
public ApplicationGrantsApi() -
ApplicationGrantsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getScopeConsentGrant
public OAuth2ScopeConsentGrant getScopeConsentGrant(String appId, String grantId, String expand) throws ApiException Retrieve a Scope Consent Grant Retrieves a single scope consent grant for the application- Parameters:
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)expand
- (optional)- Returns:
- OAuth2ScopeConsentGrant
- Throws:
ApiException
- if fails to make API call
-
getScopeConsentGrant
public OAuth2ScopeConsentGrant getScopeConsentGrant(String appId, String grantId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Scope Consent Grant Retrieves a single scope consent grant for the application- Parameters:
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)expand
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ScopeConsentGrant
- Throws:
ApiException
- if fails to make API call
-
grantConsentToScope
public OAuth2ScopeConsentGrant grantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant) throws ApiException Grant Consent to Scope Grants consent for the application to request an OAuth 2.0 Okta scope- Parameters:
appId
- ID of the Application (required)oAuth2ScopeConsentGrant
- (required)- Returns:
- OAuth2ScopeConsentGrant
- Throws:
ApiException
- if fails to make API call
-
grantConsentToScope
public OAuth2ScopeConsentGrant grantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant, Map<String, String> additionalHeaders) throws ApiExceptionGrant Consent to Scope Grants consent for the application to request an OAuth 2.0 Okta scope- Parameters:
appId
- ID of the Application (required)oAuth2ScopeConsentGrant
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2ScopeConsentGrant
- Throws:
ApiException
- if fails to make API call
-
listScopeConsentGrants
public List<OAuth2ScopeConsentGrant> listScopeConsentGrants(String appId, String expand) throws ApiException List all Scope Consent Grants Lists all scope consent grants for the application- Parameters:
appId
- ID of the Application (required)expand
- (optional)- Returns:
- List<OAuth2ScopeConsentGrant>
- Throws:
ApiException
- if fails to make API call
-
listScopeConsentGrants
public List<OAuth2ScopeConsentGrant> listScopeConsentGrants(String appId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all Scope Consent Grants Lists all scope consent grants for the application- Parameters:
appId
- ID of the Application (required)expand
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2ScopeConsentGrant>
- Throws:
ApiException
- if fails to make API call
-
revokeScopeConsentGrant
Revoke a Scope Consent Grant Revokes permission for the application to request the given scope- Parameters:
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)- Throws:
ApiException
- if fails to make API call
-
revokeScopeConsentGrant
public void revokeScopeConsentGrant(String appId, String grantId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke a Scope Consent Grant Revokes permission for the application to request the given scope- Parameters:
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-