Package com.okta.sdk.resource.api
Class AuthorizationServerScopesApi
java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerScopesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-08-09T14:19:33.269913-05:00[America/Chicago]",
comments="Generator version: 7.7.0")
public class AuthorizationServerScopesApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateOAuth2Scope
(String authServerId, OAuth2Scope oAuth2Scope) Create a Custom Token Scope Creates a custom token scopecreateOAuth2Scope
(String authServerId, OAuth2Scope oAuth2Scope, Map<String, String> additionalHeaders) Create a Custom Token Scope Creates a custom token scopevoid
deleteOAuth2Scope
(String authServerId, String scopeId) Delete a Custom Token Scope Deletes a custom token scopevoid
Delete a Custom Token Scope Deletes a custom token scopegetOAuth2Scope
(String authServerId, String scopeId) Retrieve a Custom Token Scope Retrieves a custom token scopeRetrieve a Custom Token Scope Retrieves a custom token scopeprotected static com.fasterxml.jackson.databind.ObjectMapper
List all Custom Token Scopes Lists all custom token scopeslistOAuth2Scopes
(String authServerId, String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) List all Custom Token Scopes Lists all custom token scopesreplaceOAuth2Scope
(String authServerId, String scopeId, OAuth2Scope oAuth2Scope) Replace a Custom Token Scope Replaces a custom token scopereplaceOAuth2Scope
(String authServerId, String scopeId, OAuth2Scope oAuth2Scope, Map<String, String> additionalHeaders) Replace a Custom Token Scope Replaces a custom token scopevoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
AuthorizationServerScopesApi
public AuthorizationServerScopesApi() -
AuthorizationServerScopesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createOAuth2Scope
public OAuth2Scope createOAuth2Scope(String authServerId, OAuth2Scope oAuth2Scope) throws ApiException Create a Custom Token Scope Creates a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)oAuth2Scope
- (required)- Returns:
- OAuth2Scope
- Throws:
ApiException
- if fails to make API call
-
createOAuth2Scope
public OAuth2Scope createOAuth2Scope(String authServerId, OAuth2Scope oAuth2Scope, Map<String, String> additionalHeaders) throws ApiExceptionCreate a Custom Token Scope Creates a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)oAuth2Scope
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2Scope
- Throws:
ApiException
- if fails to make API call
-
deleteOAuth2Scope
Delete a Custom Token Scope Deletes a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)scopeId
- `id` of Scope (required)- Throws:
ApiException
- if fails to make API call
-
deleteOAuth2Scope
public void deleteOAuth2Scope(String authServerId, String scopeId, Map<String, String> additionalHeaders) throws ApiExceptionDelete a Custom Token Scope Deletes a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)scopeId
- `id` of Scope (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getOAuth2Scope
Retrieve a Custom Token Scope Retrieves a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)scopeId
- `id` of Scope (required)- Returns:
- OAuth2Scope
- Throws:
ApiException
- if fails to make API call
-
getOAuth2Scope
public OAuth2Scope getOAuth2Scope(String authServerId, String scopeId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Custom Token Scope Retrieves a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)scopeId
- `id` of Scope (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2Scope
- Throws:
ApiException
- if fails to make API call
-
listOAuth2Scopes
public List<OAuth2Scope> listOAuth2Scopes(String authServerId, String q, String filter, String after, Integer limit) throws ApiException List all Custom Token Scopes Lists all custom token scopes- Parameters:
authServerId
- `id` of the Authorization Server (required)q
- (optional)filter
- (optional)after
- (optional)limit
- (optional, default to -1)- Returns:
- List<OAuth2Scope>
- Throws:
ApiException
- if fails to make API call
-
listOAuth2Scopes
public List<OAuth2Scope> listOAuth2Scopes(String authServerId, String q, String filter, String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all Custom Token Scopes Lists all custom token scopes- Parameters:
authServerId
- `id` of the Authorization Server (required)q
- (optional)filter
- (optional)after
- (optional)limit
- (optional, default to -1)additionalHeaders
- additionalHeaders for this call- Returns:
- List<OAuth2Scope>
- Throws:
ApiException
- if fails to make API call
-
replaceOAuth2Scope
public OAuth2Scope replaceOAuth2Scope(String authServerId, String scopeId, OAuth2Scope oAuth2Scope) throws ApiException Replace a Custom Token Scope Replaces a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)scopeId
- `id` of Scope (required)oAuth2Scope
- (required)- Returns:
- OAuth2Scope
- Throws:
ApiException
- if fails to make API call
-
replaceOAuth2Scope
public OAuth2Scope replaceOAuth2Scope(String authServerId, String scopeId, OAuth2Scope oAuth2Scope, Map<String, String> additionalHeaders) throws ApiExceptionReplace a Custom Token Scope Replaces a custom token scope- Parameters:
authServerId
- `id` of the Authorization Server (required)scopeId
- `id` of Scope (required)oAuth2Scope
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- OAuth2Scope
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-