Class AuthorizationServerKeysApi

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

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

    • AuthorizationServerKeysApi

      public AuthorizationServerKeysApi()
    • AuthorizationServerKeysApi

      public AuthorizationServerKeysApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getAuthorizationServerKey

      public AuthorizationServerJsonWebKey getAuthorizationServerKey(String authServerId, String keyId) throws ApiException
      Retrieve an authorization server key Retrieves an Authorization Server Key specified by the `keyId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      keyId - `id` of the certificate key (required)
      Returns:
      AuthorizationServerJsonWebKey
      Throws:
      ApiException - if fails to make API call
    • getAuthorizationServerKey

      public AuthorizationServerJsonWebKey getAuthorizationServerKey(String authServerId, String keyId, Map<String,String> additionalHeaders) throws ApiException
      Retrieve an authorization server key Retrieves an Authorization Server Key specified by the `keyId`
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      keyId - `id` of the certificate key (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      AuthorizationServerJsonWebKey
      Throws:
      ApiException - if fails to make API call
    • listAuthorizationServerKeys

      public List<AuthorizationServerJsonWebKey> listAuthorizationServerKeys(String authServerId) throws ApiException
      List all credential keys Lists all of the current, future, and expired Keys used by the Custom Authorization Server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      Returns:
      List<AuthorizationServerJsonWebKey>
      Throws:
      ApiException - if fails to make API call
    • listAuthorizationServerKeys

      public List<AuthorizationServerJsonWebKey> listAuthorizationServerKeys(String authServerId, Map<String,String> additionalHeaders) throws ApiException
      List all credential keys Lists all of the current, future, and expired Keys used by the Custom Authorization Server
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<AuthorizationServerJsonWebKey>
      Throws:
      ApiException - if fails to make API call
    • listAuthorizationServerKeysPaged

      public Iterable<AuthorizationServerJsonWebKey> listAuthorizationServerKeysPaged(String authServerId)
      List all credential keys (Paginated) Lists all of the current, future, and expired Keys used by the Custom Authorization Server 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:
      authServerId - `id` of the Authorization Server (required)
      Returns:
      Iterable<AuthorizationServerJsonWebKey> lazy iterable over all pages
    • listAuthorizationServerKeysPaged

      public Iterable<AuthorizationServerJsonWebKey> listAuthorizationServerKeysPaged(String authServerId, Map<String,String> additionalHeaders)
      List all credential keys (Paginated with additional headers) Lists all of the current, future, and expired Keys used by the Custom Authorization Server This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<AuthorizationServerJsonWebKey> lazy iterable over all pages
    • rotateAuthorizationServerKeys

      public List<AuthorizationServerJsonWebKey> rotateAuthorizationServerKeys(String authServerId, JwkUse use) throws ApiException
      Rotate all credential keys Rotates the current Keys for a Custom Authorization Server. If you rotate Keys, the `ACTIVE` Key becomes the `EXPIRED` Key, the `NEXT` Key becomes the `ACTIVE` Key, and the Custom Authorization Server immediately begins using the new active Key to sign tokens. > **Note:** Okta rotates your Keys automatically in `AUTO` mode. You can rotate Keys yourself in either mode. If Keys are rotated manually, you should invalidate any intermediate cache. and fetch the Keys again using the Keys endpoint.
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      use - (required)
      Returns:
      List<AuthorizationServerJsonWebKey>
      Throws:
      ApiException - if fails to make API call
    • rotateAuthorizationServerKeys

      public List<AuthorizationServerJsonWebKey> rotateAuthorizationServerKeys(String authServerId, JwkUse use, Map<String,String> additionalHeaders) throws ApiException
      Rotate all credential keys Rotates the current Keys for a Custom Authorization Server. If you rotate Keys, the `ACTIVE` Key becomes the `EXPIRED` Key, the `NEXT` Key becomes the `ACTIVE` Key, and the Custom Authorization Server immediately begins using the new active Key to sign tokens. > **Note:** Okta rotates your Keys automatically in `AUTO` mode. You can rotate Keys yourself in either mode. If Keys are rotated manually, you should invalidate any intermediate cache. and fetch the Keys again using the Keys endpoint.
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      use - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<AuthorizationServerJsonWebKey>
      Throws:
      ApiException - if fails to make API call
    • rotateAuthorizationServerKeysPaged

      public Iterable<AuthorizationServerJsonWebKey> rotateAuthorizationServerKeysPaged(String authServerId, JwkUse use)
      Rotate all credential keys (Paginated) Rotates the current Keys for a Custom Authorization Server. If you rotate Keys, the `ACTIVE` Key becomes the `EXPIRED` Key, the `NEXT` Key becomes the `ACTIVE` Key, and the Custom Authorization Server immediately begins using the new active Key to sign tokens. > **Note:** Okta rotates your Keys automatically in `AUTO` mode. You can rotate Keys yourself in either mode. If Keys are rotated manually, you should invalidate any intermediate cache. and fetch the Keys again using the Keys endpoint. 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:
      authServerId - `id` of the Authorization Server (required)
      use - (required)
      Returns:
      Iterable<AuthorizationServerJsonWebKey> lazy iterable over all pages
    • rotateAuthorizationServerKeysPaged

      public Iterable<AuthorizationServerJsonWebKey> rotateAuthorizationServerKeysPaged(String authServerId, JwkUse use, Map<String,String> additionalHeaders)
      Rotate all credential keys (Paginated with additional headers) Rotates the current Keys for a Custom Authorization Server. If you rotate Keys, the `ACTIVE` Key becomes the `EXPIRED` Key, the `NEXT` Key becomes the `ACTIVE` Key, and the Custom Authorization Server immediately begins using the new active Key to sign tokens. > **Note:** Okta rotates your Keys automatically in `AUTO` mode. You can rotate Keys yourself in either mode. If Keys are rotated manually, you should invalidate any intermediate cache. and fetch the Keys again using the Keys endpoint. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      authServerId - `id` of the Authorization Server (required)
      use - (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<AuthorizationServerJsonWebKey> lazy iterable over all pages
    • getObjectMapper

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