Class AuthorizationServerScopesApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-03T19:34:39.101116704Z[Etc/UTC]", comments="Generator version: 7.7.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 - (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 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)
      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()