Class AuthorizationServerApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class AuthorizationServerApi extends Object
  • Constructor Details

    • AuthorizationServerApi

      public AuthorizationServerApi()
    • AuthorizationServerApi

      public AuthorizationServerApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • activateAuthorizationServer

      public void activateAuthorizationServer(String authServerId) throws ApiException
      Activate an authorization server Activates an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Throws:
      ApiException - if fails to make API call
    • activateAuthorizationServer

      public void activateAuthorizationServer(String authServerId, Map<String,String> additionalHeaders) throws ApiException
      Activate an authorization server Activates an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • createAuthorizationServer

      public AuthorizationServer createAuthorizationServer(AuthorizationServer authorizationServer) throws ApiException
      Create an authorization server Creates an authorization server
      Parameters:
      authorizationServer - (required)
      Returns:
      AuthorizationServer
      Throws:
      ApiException - if fails to make API call
    • createAuthorizationServer

      public AuthorizationServer createAuthorizationServer(AuthorizationServer authorizationServer, Map<String,String> additionalHeaders) throws ApiException
      Create an authorization server Creates an authorization server
      Parameters:
      authorizationServer - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      AuthorizationServer
      Throws:
      ApiException - if fails to make API call
    • deactivateAuthorizationServer

      public void deactivateAuthorizationServer(String authServerId) throws ApiException
      Deactivate an authorization server Deactivates an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Throws:
      ApiException - if fails to make API call
    • deactivateAuthorizationServer

      public void deactivateAuthorizationServer(String authServerId, Map<String,String> additionalHeaders) throws ApiException
      Deactivate an authorization server Deactivates an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • deleteAuthorizationServer

      public void deleteAuthorizationServer(String authServerId) throws ApiException
      Delete an authorization server Deletes an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Throws:
      ApiException - if fails to make API call
    • deleteAuthorizationServer

      public void deleteAuthorizationServer(String authServerId, Map<String,String> additionalHeaders) throws ApiException
      Delete an authorization server Deletes an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getAuthorizationServer

      public AuthorizationServer getAuthorizationServer(String authServerId) throws ApiException
      Retrieve an authorization server Retrieves an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Returns:
      AuthorizationServer
      Throws:
      ApiException - if fails to make API call
    • getAuthorizationServer

      public AuthorizationServer getAuthorizationServer(String authServerId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve an authorization server Retrieves an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      AuthorizationServer
      Throws:
      ApiException - if fails to make API call
    • listAuthorizationServers

      public List<AuthorizationServer> listAuthorizationServers(String q, Integer limit, String after) throws ApiException
      List all authorization servers Lists all custom authorization servers in the org
      Parameters:
      q - Searches the `name` and `audiences` of authorization servers for matching values (optional)
      limit - Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)
      after - Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)
      Returns:
      List<AuthorizationServer>
      Throws:
      ApiException - if fails to make API call
    • listAuthorizationServers

      public List<AuthorizationServer> listAuthorizationServers(String q, Integer limit, String after, Map<String,String> additionalHeaders) throws ApiException
      List all authorization servers Lists all custom authorization servers in the org
      Parameters:
      q - Searches the `name` and `audiences` of authorization servers for matching values (optional)
      limit - Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)
      after - Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<AuthorizationServer>
      Throws:
      ApiException - if fails to make API call
    • listAuthorizationServersPaged

      public Iterable<AuthorizationServer> listAuthorizationServersPaged(String q, Integer limit, String after)
      List all authorization servers (Paginated) Lists all custom authorization servers in the org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      q - Searches the `name` and `audiences` of authorization servers for matching values (optional)
      limit - Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)
      after - Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)
      Returns:
      Iterable<AuthorizationServer> lazy iterable over all pages
    • listAuthorizationServersPaged

      public Iterable<AuthorizationServer> listAuthorizationServersPaged(String q, Integer limit, String after, Map<String,String> additionalHeaders)
      List all authorization servers (Paginated with additional headers) Lists all custom authorization servers in the org This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      q - Searches the `name` and `audiences` of authorization servers for matching values (optional)
      limit - Specifies the number of authorization server results on a page. Maximum value: 200 (optional, default to 200)
      after - Specifies the pagination cursor for the next page of authorization servers. Treat as an opaque value and obtain through the next link relationship. (optional)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<AuthorizationServer> lazy iterable over all pages
    • replaceAuthorizationServer

      public AuthorizationServer replaceAuthorizationServer(String authServerId, AuthorizationServer authorizationServer) throws ApiException
      Replace an authorization server Replaces an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      authorizationServer - (required)
      Returns:
      AuthorizationServer
      Throws:
      ApiException - if fails to make API call
    • replaceAuthorizationServer

      public AuthorizationServer replaceAuthorizationServer(String authServerId, AuthorizationServer authorizationServer, Map<String,String> additionalHeaders) throws ApiException
      Replace an authorization server Replaces an authorization server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      authorizationServer - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      AuthorizationServer
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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