Package com.okta.sdk.resource.api
Class ApplicationCredentialsApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationCredentialsApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-08-09T14:19:33.269913-05:00[America/Chicago]",
comments="Generator version: 7.7.0")
public class ApplicationCredentialsApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloneApplicationKey
(String appId, String keyId, String targetAid) Clone a Key Credential Clones a X.509 certificate for an application key credential from a source application to target application.cloneApplicationKey
(String appId, String keyId, String targetAid, Map<String, String> additionalHeaders) Clone a Key Credential Clones a X.509 certificate for an application key credential from a source application to target application.generateApplicationKey
(String appId, Integer validityYears) Generate a Key Credential Generates a new X.509 certificate for an application key credentialGenerate a Key Credential Generates a new X.509 certificate for an application key credentialgenerateCsrForApplication
(String appId, CsrMetadata metadata) Generate a Certificate Signing Request Generates a new key pair and returns the Certificate Signing Request for itgenerateCsrForApplication
(String appId, CsrMetadata metadata, Map<String, String> additionalHeaders) Generate a Certificate Signing Request Generates a new key pair and returns the Certificate Signing Request for itgetApplicationKey
(String appId, String keyId) Retrieve a Key Credential Retrieves a specific application key credential by kidRetrieve a Key Credential Retrieves a specific application key credential by kidgetCsrForApplication
(String appId, String csrId) Retrieve a Certificate Signing Request Retrieves a certificate signing request for the app by `id`Retrieve a Certificate Signing Request Retrieves a certificate signing request for the app by `id`protected static com.fasterxml.jackson.databind.ObjectMapper
listApplicationKeys
(String appId) List all Key Credentials Lists all key credentials for an applicationlistApplicationKeys
(String appId, Map<String, String> additionalHeaders) List all Key Credentials Lists all key credentials for an applicationlistCsrsForApplication
(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 for the app with a signed X.509 certificate and adds it into the application key credentialspublishCsrFromApplication
(String appId, String csrId, File body, Map<String, String> additionalHeaders) Publish a Certificate Signing Request Publishes a certificate signing request for the app with a signed X.509 certificate and adds it into the application key credentialsvoid
revokeCsrFromApplication
(String appId, String csrId) Revoke a Certificate Signing Request Revokes a certificate signing request and deletes the key pair from the applicationvoid
Revoke a Certificate Signing Request Revokes a certificate signing request and deletes the key pair from the applicationvoid
setApiClient
(ApiClient apiClient)
-
Constructor Details
-
ApplicationCredentialsApi
public ApplicationCredentialsApi() -
ApplicationCredentialsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
cloneApplicationKey
public JsonWebKey cloneApplicationKey(String appId, String keyId, String targetAid) throws ApiException Clone a Key Credential Clones a X.509 certificate for an application key credential from a source application to target application.- 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 a X.509 certificate for an application key credential from a source application to target application.- 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 application key credential- Parameters:
appId
- Application ID (required)validityYears
- (optional)- 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 application key credential- Parameters:
appId
- Application ID (required)validityYears
- (optional)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 for it- Parameters:
appId
- Application ID (required)metadata
- (required)- Returns:
- Csr
- Throws:
ApiException
- if fails to make API call
-
generateCsrForApplication
public Csr 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 for it- Parameters:
appId
- Application ID (required)metadata
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Csr
- 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 for the app by `id`- 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 for the app by `id`- 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 application- 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 application- 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 for the app with a signed X.509 certificate and adds it into the application key credentials- 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 for the app with a signed X.509 certificate and adds it into the application key credentials- 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 application- 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 application- 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()
-