Package com.okta.sdk.resource.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIdentityProviderKey(IdPCertificateCredential jsonWebKey) 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.createIdentityProviderKey(IdPCertificateCredential jsonWebKey, Map<String, String> additionalHeaders) 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.voidDelete 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 IdPvoiddeleteIdentityProviderKey(String kid, Map<String, String> additionalHeaders) 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 IdPRetrieve an IdP key credential Retrieves a specific identity provider (IdP) key credential by `kid`getIdentityProviderKey(String kid, Map<String, String> additionalHeaders) Retrieve an IdP key credential Retrieves a specific identity provider (IdP) key credential by `kid`protected static com.fasterxml.jackson.databind.ObjectMapperlistIdentityProviderKeys(String after, Integer limit) List all IdP key credentials Lists all identity provider (IdP) key credentialsList all IdP key credentials Lists all identity provider (IdP) key credentialslistIdentityProviderKeysPaged(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.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.replaceIdentityProviderKey(String kid, IdPKeyCredential idPKeyCredential) Replace an IdP key credential Replaces an identity provider (IdP) key credential by `kid`replaceIdentityProviderKey(String kid, IdPKeyCredential idPKeyCredential, Map<String, String> additionalHeaders) Replace an IdP key credential Replaces an identity provider (IdP) key credential by `kid`voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
IdentityProviderKeysApi
public IdentityProviderKeysApi() -
IdentityProviderKeysApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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 ApiExceptionCreate 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
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 ApiExceptionDelete 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
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 ApiExceptionRetrieve 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 ApiExceptionList 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
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 ApiExceptionReplace 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()
-