Class AuthorizationServerApi

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.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
    • 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()