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="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class ApplicationSsoCredentialKeyApi
extends Object
-
Constructor Summary
-
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!path=4/credentials/signing/kid&t=request) value in the request body.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.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.ObjectMapper
listApplicationKeys
(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 applistCsrsForApplication
(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 applicationpublishCsrFromApplication
(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.void
revokeCsrFromApplication
(String appId, String csrId) Revoke a Certificate Signing Request Revokes a Certificate Signing Request and deletes the key pair from the appvoid
Revoke a Certificate Signing Request Revokes a Certificate Signing Request and deletes the key pair from the appvoid
setApiClient
(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
-
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
-
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()
-