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-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.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
- Searches the `name` of Custom Token Scopes for matching values (optional)filter
- Filter expression for Custom Token Scopes (optional)after
- Specifies the pagination cursor for the next page of scopes. Treat the after cursor as an opaque value and obtain it through the next link relationship. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it). See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)- 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
- Searches the `name` of Custom Token Scopes for matching values (optional)filter
- Filter expression for Custom Token Scopes (optional)after
- Specifies the pagination cursor for the next page of scopes. Treat the after cursor as an opaque value and obtain it through the next link relationship. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit
- Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it). See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)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()
-