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-09-23T08:35:59.300824-05:00[America/Chicago]",
           comments="Generator version: 7.8.0")
public class ApplicationGrantsApi
extends Object
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected static com.fasterxml.jackson.databind.ObjectMappergetScopeConsentGrant(String appId, String grantId, String expand) Retrieve an app Grant Retrieves a single scope consent Grant object for the appgetScopeConsentGrant(String appId, String grantId, String expand, Map<String, String> additionalHeaders) Retrieve an app Grant Retrieves a single scope consent Grant object for the appgrantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant) Grant consent to scope Grants consent for the app to request an OAuth 2.0 Okta scopegrantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant, Map<String, String> additionalHeaders) Grant consent to scope Grants consent for the app to request an OAuth 2.0 Okta scopelistScopeConsentGrants(String appId, String expand) List all app Grants Lists all scope consent Grants for the appList all app Grants Lists all scope consent Grants for the appvoidrevokeScopeConsentGrant(String appId, String grantId) Revoke an app Grant Revokes permission for the app to grant the given scopevoidRevoke an app Grant Revokes permission for the app to grant the given scopevoidsetApiClient(ApiClient apiClient) 
- 
Constructor Details- 
ApplicationGrantsApipublic ApplicationGrantsApi()
- 
ApplicationGrantsApi
 
- 
- 
Method Details- 
getApiClient
- 
setApiClient
- 
getScopeConsentGrantpublic OAuth2ScopeConsentGrant getScopeConsentGrant(String appId, String grantId, String expand) throws ApiException Retrieve an app Grant Retrieves a single scope consent Grant object for the app- Parameters:
- appId- Application ID (required)
- grantId- Grant ID (required)
- expand- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)
- Returns:
- OAuth2ScopeConsentGrant
- Throws:
- ApiException- if fails to make API call
 
- 
getScopeConsentGrantpublic OAuth2ScopeConsentGrant getScopeConsentGrant(String appId, String grantId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an app Grant Retrieves a single scope consent Grant object for the app- Parameters:
- appId- Application ID (required)
- grantId- Grant ID (required)
- expand- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)
- additionalHeaders- additionalHeaders for this call
- Returns:
- OAuth2ScopeConsentGrant
- Throws:
- ApiException- if fails to make API call
 
- 
grantConsentToScopepublic OAuth2ScopeConsentGrant grantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant) throws ApiException Grant consent to scope Grants consent for the app to request an OAuth 2.0 Okta scope- Parameters:
- appId- Application ID (required)
- oAuth2ScopeConsentGrant- (required)
- Returns:
- OAuth2ScopeConsentGrant
- Throws:
- ApiException- if fails to make API call
 
- 
grantConsentToScopepublic OAuth2ScopeConsentGrant grantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant, Map<String, String> additionalHeaders) throws ApiExceptionGrant consent to scope Grants consent for the app to request an OAuth 2.0 Okta scope- Parameters:
- appId- Application ID (required)
- oAuth2ScopeConsentGrant- (required)
- additionalHeaders- additionalHeaders for this call
- Returns:
- OAuth2ScopeConsentGrant
- Throws:
- ApiException- if fails to make API call
 
- 
listScopeConsentGrantspublic List<OAuth2ScopeConsentGrant> listScopeConsentGrants(String appId, String expand) throws ApiException List all app Grants Lists all scope consent Grants for the app- Parameters:
- appId- Application ID (required)
- expand- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)
- Returns:
- List<OAuth2ScopeConsentGrant>
- Throws:
- ApiException- if fails to make API call
 
- 
listScopeConsentGrantspublic List<OAuth2ScopeConsentGrant> listScopeConsentGrants(String appId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all app Grants Lists all scope consent Grants for the app- Parameters:
- appId- Application ID (required)
- expand- An optional parameter to return scope details in the `_embedded` property. Valid value: `scope` (optional)
- additionalHeaders- additionalHeaders for this call
- Returns:
- List<OAuth2ScopeConsentGrant>
- Throws:
- ApiException- if fails to make API call
 
- 
revokeScopeConsentGrantRevoke an app Grant Revokes permission for the app to grant the given scope- Parameters:
- appId- Application ID (required)
- grantId- Grant ID (required)
- Throws:
- ApiException- if fails to make API call
 
- 
revokeScopeConsentGrantpublic void revokeScopeConsentGrant(String appId, String grantId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke an app Grant Revokes permission for the app to grant the given scope- Parameters:
- appId- Application ID (required)
- grantId- Grant ID (required)
- additionalHeaders- additionalHeaders for this call
- Throws:
- ApiException- if fails to make API call
 
- 
getObjectMapperprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
 
-