Class AuthorizationServerScopesApi

java.lang.Object
com.okta.sdk.resource.api.AuthorizationServerScopesApi

@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 AuthorizationServerScopesApi extends Object
  • Constructor Details

    • AuthorizationServerScopesApi

      public AuthorizationServerScopesApi()
    • AuthorizationServerScopesApi

      public AuthorizationServerScopesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • 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 ApiException
      Create 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

      public void deleteOAuth2Scope(String authServerId, String scopeId) throws ApiException
      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 ApiException
      Delete 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

      public OAuth2Scope getOAuth2Scope(String authServerId, String scopeId) throws ApiException
      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 ApiException
      Retrieve 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 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)
      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 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)
      additionalHeaders - additionalHeaders for this call
      Returns:
      OAuth2Scope
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()