Class AuthorizationServerKeysApi

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

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

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