@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T17:07:26.321-05:00[America/Chicago]") public class ApplicationGrantsApi extends Object
Constructor and Description |
---|
ApplicationGrantsApi() |
ApplicationGrantsApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
OAuth2ScopeConsentGrant |
getScopeConsentGrant(String appId,
String grantId,
String expand)
Retrieve a Scope Consent Grant
Retrieves a single scope consent grant for the application
|
OAuth2ScopeConsentGrant |
getScopeConsentGrant(String appId,
String grantId,
String expand,
Map<String,String> additionalHeaders)
Retrieve a Scope Consent Grant
Retrieves a single scope consent grant for the application
|
OAuth2ScopeConsentGrant |
grantConsentToScope(String appId,
OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant)
Grant Consent to Scope
Grants consent for the application to request an OAuth 2.0 Okta scope
|
OAuth2ScopeConsentGrant |
grantConsentToScope(String appId,
OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant,
Map<String,String> additionalHeaders)
Grant Consent to Scope
Grants consent for the application to request an OAuth 2.0 Okta scope
|
List<OAuth2ScopeConsentGrant> |
listScopeConsentGrants(String appId,
String expand)
List all Scope Consent Grants
Lists all scope consent grants for the application
|
List<OAuth2ScopeConsentGrant> |
listScopeConsentGrants(String appId,
String expand,
Map<String,String> additionalHeaders)
List all Scope Consent Grants
Lists all scope consent grants for the application
|
void |
revokeScopeConsentGrant(String appId,
String grantId)
Revoke a Scope Consent Grant
Revokes permission for the application to request the given scope
|
void |
revokeScopeConsentGrant(String appId,
String grantId,
Map<String,String> additionalHeaders)
Revoke a Scope Consent Grant
Revokes permission for the application to request the given scope
|
void |
setApiClient(ApiClient apiClient) |
public ApplicationGrantsApi()
public ApplicationGrantsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public OAuth2ScopeConsentGrant getScopeConsentGrant(String appId, String grantId, String expand) throws ApiException
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)expand
- (optional)ApiException
- if fails to make API callpublic OAuth2ScopeConsentGrant getScopeConsentGrant(String appId, String grantId, String expand, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)expand
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic OAuth2ScopeConsentGrant grantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant) throws ApiException
appId
- ID of the Application (required)oAuth2ScopeConsentGrant
- (required)ApiException
- if fails to make API callpublic OAuth2ScopeConsentGrant grantConsentToScope(String appId, OAuth2ScopeConsentGrant oAuth2ScopeConsentGrant, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)oAuth2ScopeConsentGrant
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<OAuth2ScopeConsentGrant> listScopeConsentGrants(String appId, String expand) throws ApiException
appId
- ID of the Application (required)expand
- (optional)ApiException
- if fails to make API callpublic List<OAuth2ScopeConsentGrant> listScopeConsentGrants(String appId, String expand, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)expand
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeScopeConsentGrant(String appId, String grantId) throws ApiException
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)ApiException
- if fails to make API callpublic void revokeScopeConsentGrant(String appId, String grantId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)grantId
- `id` of the Grant (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.