Class IdentityProviderKeysApi

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

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

    • IdentityProviderKeysApi

      public IdentityProviderKeysApi()
    • IdentityProviderKeysApi

      public IdentityProviderKeysApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createIdentityProviderKey

      public IdPKeyCredential createIdentityProviderKey(IdPCertificateCredential jsonWebKey) throws ApiException
      Create an IdP key credential Creates a new X.509 certificate credential in the identity provider (IdP) key store > **Note:** RSA-based certificates are supported for all IdP types. Okta currently supports EC-based certificates only for the `X509` IdP type. For EC-based certificates we support only P-256, P-384, and P-521 curves.
      Parameters:
      jsonWebKey - (required)
      Returns:
      IdPKeyCredential
      Throws:
      ApiException - if fails to make API call
    • createIdentityProviderKey

      public IdPKeyCredential createIdentityProviderKey(IdPCertificateCredential jsonWebKey, Map<String,String> additionalHeaders) throws ApiException
      Create an IdP key credential Creates a new X.509 certificate credential in the identity provider (IdP) key store > **Note:** RSA-based certificates are supported for all IdP types. Okta currently supports EC-based certificates only for the `X509` IdP type. For EC-based certificates we support only P-256, P-384, and P-521 curves.
      Parameters:
      jsonWebKey - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IdPKeyCredential
      Throws:
      ApiException - if fails to make API call
    • deleteIdentityProviderKey

      public void deleteIdentityProviderKey(String kid) throws ApiException
      Delete an IdP key credential Deletes a specific identity provider (IdP) key credential by `kid` if it isn't currently being used by an active or inactive IdP
      Parameters:
      kid - Unique `id` of the IdP key credential (required)
      Throws:
      ApiException - if fails to make API call
    • deleteIdentityProviderKey

      public void deleteIdentityProviderKey(String kid, Map<String,String> additionalHeaders) throws ApiException
      Delete an IdP key credential Deletes a specific identity provider (IdP) key credential by `kid` if it isn't currently being used by an active or inactive IdP
      Parameters:
      kid - Unique `id` of the IdP key credential (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getIdentityProviderKey

      public IdPKeyCredential getIdentityProviderKey(String kid) throws ApiException
      Retrieve an IdP key credential Retrieves a specific identity provider (IdP) key credential by `kid`
      Parameters:
      kid - Unique `id` of the IdP key credential (required)
      Returns:
      IdPKeyCredential
      Throws:
      ApiException - if fails to make API call
    • getIdentityProviderKey

      public IdPKeyCredential getIdentityProviderKey(String kid, Map<String,String> additionalHeaders) throws ApiException
      Retrieve an IdP key credential Retrieves a specific identity provider (IdP) key credential by `kid`
      Parameters:
      kid - Unique `id` of the IdP key credential (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IdPKeyCredential
      Throws:
      ApiException - if fails to make API call
    • listIdentityProviderKeys

      public List<IdPKeyCredential> listIdentityProviderKeys(String after, Integer limit) throws ApiException
      List all IdP key credentials Lists all identity provider (IdP) key credentials
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      Returns:
      List<IdPKeyCredential>
      Throws:
      ApiException - if fails to make API call
    • listIdentityProviderKeys

      public List<IdPKeyCredential> listIdentityProviderKeys(String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
      List all IdP key credentials Lists all identity provider (IdP) key credentials
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<IdPKeyCredential>
      Throws:
      ApiException - if fails to make API call
    • listIdentityProviderKeysPaged

      public Iterable<IdPKeyCredential> listIdentityProviderKeysPaged(String after, Integer limit)
      List all IdP key credentials (Paginated) Lists all identity provider (IdP) key credentials 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:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      Returns:
      Iterable<IdPKeyCredential> lazy iterable over all pages
    • listIdentityProviderKeysPaged

      public Iterable<IdPKeyCredential> listIdentityProviderKeysPaged(String after, Integer limit, Map<String,String> additionalHeaders)
      List all IdP key credentials (Paginated with additional headers) Lists all identity provider (IdP) key credentials This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<IdPKeyCredential> lazy iterable over all pages
    • replaceIdentityProviderKey

      public IdPKeyCredential replaceIdentityProviderKey(String kid, IdPKeyCredential idPKeyCredential) throws ApiException
      Replace an IdP key credential Replaces an identity provider (IdP) key credential by `kid`
      Parameters:
      kid - Unique `id` of the IdP key credential (required)
      idPKeyCredential - Updated IdP key credential (required)
      Returns:
      IdPKeyCredential
      Throws:
      ApiException - if fails to make API call
    • replaceIdentityProviderKey

      public IdPKeyCredential replaceIdentityProviderKey(String kid, IdPKeyCredential idPKeyCredential, Map<String,String> additionalHeaders) throws ApiException
      Replace an IdP key credential Replaces an identity provider (IdP) key credential by `kid`
      Parameters:
      kid - Unique `id` of the IdP key credential (required)
      idPKeyCredential - Updated IdP key credential (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      IdPKeyCredential
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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