Package com.okta.sdk.resource.api
Class ApplicationSsoCredentialKeyApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationSsoCredentialKeyApi
@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 ApplicationSsoCredentialKeyApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneApplicationKey(String appId, String keyId, String targetAid) Clone a key credential Clones an X.509 certificate for an Application Key Credential from a source app to a target app.cloneApplicationKey(String appId, String keyId, String targetAid, Map<String, String> additionalHeaders) Clone a key credential Clones an X.509 certificate for an Application Key Credential from a source app to a target app.generateApplicationKey(String appId, Integer validityYears) Generate a key credential Generates a new X.509 certificate for an app key credential > **Note:** To update an Application with the newly generated key credential, use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) request with the new [credentials.signing.kid](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!Generate a key credential Generates a new X.509 certificate for an app key credential > **Note:** To update an Application with the newly generated key credential, use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) request with the new [credentials.signing.kid](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!generateCsrForApplication(String appId, CsrMetadata metadata) Generate a certificate signing request Generates a new key pair and returns the Certificate Signing Request(CSR) for it.generateCsrForApplication(String appId, CsrMetadata metadata, Map<String, String> additionalHeaders) Generate a certificate signing request Generates a new key pair and returns the Certificate Signing Request(CSR) for it.getApplicationKey(String appId, String keyId) Retrieve a key credential Retrieves a specific Application Key Credential by `kid`Retrieve a key credential Retrieves a specific Application Key Credential by `kid`getCsrForApplication(String appId, String csrId) Retrieve a certificate signing request Retrieves a Certificate Signing Request (CSR) for the app by `csrId`.Retrieve a certificate signing request Retrieves a Certificate Signing Request (CSR) for the app by `csrId`.protected static com.fasterxml.jackson.databind.ObjectMapperlistApplicationKeys(String appId) List all key credentials Lists all key credentials for an applistApplicationKeys(String appId, Map<String, String> additionalHeaders) List all key credentials Lists all key credentials for an applistApplicationKeysPaged(String appId) List all key credentials (Paginated) Lists all key credentials for an app This method returns a lazy, paginated iterable that automatically handles pagination.listApplicationKeysPaged(String appId, Map<String, String> additionalHeaders) List all key credentials (Paginated with additional headers) Lists all key credentials for an app This method returns a lazy, paginated iterable that automatically handles pagination.listCsrsForApplication(String appId) List all certificate signing requests Lists all Certificate Signing Requests for an applicationlistCsrsForApplication(String appId, Map<String, String> additionalHeaders) List all certificate signing requests Lists all Certificate Signing Requests for an applicationList all certificate signing requests (Paginated) Lists all Certificate Signing Requests for an application This method returns a lazy, paginated iterable that automatically handles pagination.listCsrsForApplicationPaged(String appId, Map<String, String> additionalHeaders) List all certificate signing requests (Paginated with additional headers) Lists all Certificate Signing Requests for an application This method returns a lazy, paginated iterable that automatically handles pagination.publishCsrFromApplication(String appId, String csrId, File body) Publish a certificate signing request Publishes a Certificate Signing Request (CSR) for the app with a signed X.509 certificate and adds it into the Application Key Credentials.publishCsrFromApplication(String appId, String csrId, File body, Map<String, String> additionalHeaders) Publish a certificate signing request Publishes a Certificate Signing Request (CSR) for the app with a signed X.509 certificate and adds it into the Application Key Credentials.voidrevokeCsrFromApplication(String appId, String csrId) Revoke a certificate signing request Revokes a Certificate Signing Request and deletes the key pair from the appvoidRevoke a certificate signing request Revokes a Certificate Signing Request and deletes the key pair from the appvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
ApplicationSsoCredentialKeyApi
public ApplicationSsoCredentialKeyApi() -
ApplicationSsoCredentialKeyApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
cloneApplicationKey
public JsonWebKey cloneApplicationKey(String appId, String keyId, String targetAid) throws ApiException Clone a key credential Clones an X.509 certificate for an Application Key Credential from a source app to a target app. For step-by-step instructions to clone a credential, see [Share application key credentials for IdPs across apps](https://developer.okta.com/docs/guides/sharing-cert/main/). > **Note:** Sharing certificates isn't a recommended security practice.- Parameters:
appId- Application ID (required)keyId- ID of the Key Credential for the application (required)targetAid- Unique key of the target Application (required)- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
cloneApplicationKey
public JsonWebKey cloneApplicationKey(String appId, String keyId, String targetAid, Map<String, String> additionalHeaders) throws ApiExceptionClone a key credential Clones an X.509 certificate for an Application Key Credential from a source app to a target app. For step-by-step instructions to clone a credential, see [Share application key credentials for IdPs across apps](https://developer.okta.com/docs/guides/sharing-cert/main/). > **Note:** Sharing certificates isn't a recommended security practice.- Parameters:
appId- Application ID (required)keyId- ID of the Key Credential for the application (required)targetAid- Unique key of the target Application (required)additionalHeaders- additionalHeaders for this call- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
generateApplicationKey
Generate a key credential Generates a new X.509 certificate for an app key credential > **Note:** To update an Application with the newly generated key credential, use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) request with the new [credentials.signing.kid](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!path=4/credentials/signing/kid&t=request) value in the request body. You can provide just the [Signing Credential object](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!path=4/credentials/signing&t=request) instead of the entire [Application Credential object](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!path=4/credentials&t=request).- Parameters:
appId- Application ID (required)validityYears- Expiry years of the Application Key Credential (required)- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
generateApplicationKey
public JsonWebKey generateApplicationKey(String appId, Integer validityYears, Map<String, String> additionalHeaders) throws ApiExceptionGenerate a key credential Generates a new X.509 certificate for an app key credential > **Note:** To update an Application with the newly generated key credential, use the [Replace an Application](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication) request with the new [credentials.signing.kid](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!path=4/credentials/signing/kid&t=request) value in the request body. You can provide just the [Signing Credential object](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!path=4/credentials/signing&t=request) instead of the entire [Application Credential object](/openapi/okta-management/management/tag/Application/#tag/Application/operation/replaceApplication!path=4/credentials&t=request).- Parameters:
appId- Application ID (required)validityYears- Expiry years of the Application Key Credential (required)additionalHeaders- additionalHeaders for this call- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
generateCsrForApplication
Generate a certificate signing request Generates a new key pair and returns the Certificate Signing Request(CSR) for it. The information in a CSR is used by the Certificate Authority (CA) to verify and create your certificate. It also contains the public key that is included in your certificate. Returns CSR in `pkcs#10` format if the `Accept` media type is `application/pkcs10` or a CSR object if the `Accept` media type is `application/json`. > **Note:** The key pair isn't listed in the Key Credentials for the app until it's published.- Parameters:
appId- Application ID (required)metadata- (required)- Returns:
- String
- Throws:
ApiException- if fails to make API call
-
generateCsrForApplication
public String generateCsrForApplication(String appId, CsrMetadata metadata, Map<String, String> additionalHeaders) throws ApiExceptionGenerate a certificate signing request Generates a new key pair and returns the Certificate Signing Request(CSR) for it. The information in a CSR is used by the Certificate Authority (CA) to verify and create your certificate. It also contains the public key that is included in your certificate. Returns CSR in `pkcs#10` format if the `Accept` media type is `application/pkcs10` or a CSR object if the `Accept` media type is `application/json`. > **Note:** The key pair isn't listed in the Key Credentials for the app until it's published.- Parameters:
appId- Application ID (required)metadata- (required)additionalHeaders- additionalHeaders for this call- Returns:
- String
- Throws:
ApiException- if fails to make API call
-
getApplicationKey
Retrieve a key credential Retrieves a specific Application Key Credential by `kid`- Parameters:
appId- Application ID (required)keyId- ID of the Key Credential for the application (required)- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
getApplicationKey
public JsonWebKey getApplicationKey(String appId, String keyId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a key credential Retrieves a specific Application Key Credential by `kid`- Parameters:
appId- Application ID (required)keyId- ID of the Key Credential for the application (required)additionalHeaders- additionalHeaders for this call- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
getCsrForApplication
Retrieve a certificate signing request Retrieves a Certificate Signing Request (CSR) for the app by `csrId`. Returns a Base64-encoded CSR in DER format if the `Accept` media type is `application/pkcs10` or a CSR object if the `Accept` media type is `application/json`.- Parameters:
appId- Application ID (required)csrId- `id` of the CSR (required)- Returns:
- Csr
- Throws:
ApiException- if fails to make API call
-
getCsrForApplication
public Csr getCsrForApplication(String appId, String csrId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a certificate signing request Retrieves a Certificate Signing Request (CSR) for the app by `csrId`. Returns a Base64-encoded CSR in DER format if the `Accept` media type is `application/pkcs10` or a CSR object if the `Accept` media type is `application/json`.- Parameters:
appId- Application ID (required)csrId- `id` of the CSR (required)additionalHeaders- additionalHeaders for this call- Returns:
- Csr
- Throws:
ApiException- if fails to make API call
-
listApplicationKeys
List all key credentials Lists all key credentials for an app- Parameters:
appId- Application ID (required)- Returns:
- List<JsonWebKey>
- Throws:
ApiException- if fails to make API call
-
listApplicationKeys
public List<JsonWebKey> listApplicationKeys(String appId, Map<String, String> additionalHeaders) throws ApiExceptionList all key credentials Lists all key credentials for an app- Parameters:
appId- Application ID (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<JsonWebKey>
- Throws:
ApiException- if fails to make API call
-
listApplicationKeysPaged
List all key credentials (Paginated) Lists all key credentials for an app 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:
appId- Application ID (required)- Returns:
- Iterable<JsonWebKey> lazy iterable over all pages
-
listApplicationKeysPaged
public Iterable<JsonWebKey> listApplicationKeysPaged(String appId, Map<String, String> additionalHeaders) List all key credentials (Paginated with additional headers) Lists all key credentials for an app This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
appId- Application ID (required)additionalHeaders- additional headers for this call- Returns:
- Iterable<JsonWebKey> lazy iterable over all pages
-
listCsrsForApplication
List all certificate signing requests Lists all Certificate Signing Requests for an application- Parameters:
appId- Application ID (required)- Returns:
- List<Csr>
- Throws:
ApiException- if fails to make API call
-
listCsrsForApplication
public List<Csr> listCsrsForApplication(String appId, Map<String, String> additionalHeaders) throws ApiExceptionList all certificate signing requests Lists all Certificate Signing Requests for an application- Parameters:
appId- Application ID (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<Csr>
- Throws:
ApiException- if fails to make API call
-
listCsrsForApplicationPaged
List all certificate signing requests (Paginated) Lists all Certificate Signing Requests for an application 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:
appId- Application ID (required)- Returns:
- Iterable<Csr> lazy iterable over all pages
-
listCsrsForApplicationPaged
public Iterable<Csr> listCsrsForApplicationPaged(String appId, Map<String, String> additionalHeaders) List all certificate signing requests (Paginated with additional headers) Lists all Certificate Signing Requests for an application This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
appId- Application ID (required)additionalHeaders- additional headers for this call- Returns:
- Iterable<Csr> lazy iterable over all pages
-
publishCsrFromApplication
public JsonWebKey publishCsrFromApplication(String appId, String csrId, File body) throws ApiException Publish a certificate signing request Publishes a Certificate Signing Request (CSR) for the app with a signed X.509 certificate and adds it into the Application Key Credentials. > **Note:** Publishing a certificate completes the lifecycle of the CSR and it's no longer accessible.- Parameters:
appId- Application ID (required)csrId- `id` of the CSR (required)body- (required)- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
publishCsrFromApplication
public JsonWebKey publishCsrFromApplication(String appId, String csrId, File body, Map<String, String> additionalHeaders) throws ApiExceptionPublish a certificate signing request Publishes a Certificate Signing Request (CSR) for the app with a signed X.509 certificate and adds it into the Application Key Credentials. > **Note:** Publishing a certificate completes the lifecycle of the CSR and it's no longer accessible.- Parameters:
appId- Application ID (required)csrId- `id` of the CSR (required)body- (required)additionalHeaders- additionalHeaders for this call- Returns:
- JsonWebKey
- Throws:
ApiException- if fails to make API call
-
revokeCsrFromApplication
Revoke a certificate signing request Revokes a Certificate Signing Request and deletes the key pair from the app- Parameters:
appId- Application ID (required)csrId- `id` of the CSR (required)- Throws:
ApiException- if fails to make API call
-
revokeCsrFromApplication
public void revokeCsrFromApplication(String appId, String csrId, Map<String, String> additionalHeaders) throws ApiExceptionRevoke a certificate signing request Revokes a Certificate Signing Request and deletes the key pair from the app- Parameters:
appId- Application ID (required)csrId- `id` of the CSR (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-