@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class ApplicationCredentialsApi extends Object
Constructor and Description |
---|
ApplicationCredentialsApi() |
ApplicationCredentialsApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
JsonWebKey |
cloneApplicationKey(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.
|
JsonWebKey |
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.
|
JsonWebKey |
generateApplicationKey(String appId,
Integer validityYears)
Generate a Key Credential
Generates a new X.509 certificate for an application key credential
|
JsonWebKey |
generateApplicationKey(String appId,
Integer validityYears,
Map<String,String> additionalHeaders)
Generate a Key Credential
Generates a new X.509 certificate for an application key credential
|
Csr |
generateCsrForApplication(String appId,
CsrMetadata metadata)
Generate a Certificate Signing Request
Generates a new key pair and returns the Certificate Signing Request for it
|
Csr |
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 for it
|
ApiClient |
getApiClient() |
JsonWebKey |
getApplicationKey(String appId,
String keyId)
Retrieve a Key Credential
Retrieves a specific application key credential by kid
|
JsonWebKey |
getApplicationKey(String appId,
String keyId,
Map<String,String> additionalHeaders)
Retrieve a Key Credential
Retrieves a specific application key credential by kid
|
Csr |
getCsrForApplication(String appId,
String csrId)
Retrieve a Certificate Signing Request
Retrieves a certificate signing request for the app by `id`
|
Csr |
getCsrForApplication(String appId,
String csrId,
Map<String,String> additionalHeaders)
Retrieve a Certificate Signing Request
Retrieves a certificate signing request for the app by `id`
|
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
List<JsonWebKey> |
listApplicationKeys(String appId)
List all Key Credentials
Lists all key credentials for an application
|
List<JsonWebKey> |
listApplicationKeys(String appId,
Map<String,String> additionalHeaders)
List all Key Credentials
Lists all key credentials for an application
|
List<Csr> |
listCsrsForApplication(String appId)
List all Certificate Signing Requests
Lists all Certificate Signing Requests for an application
|
List<Csr> |
listCsrsForApplication(String appId,
Map<String,String> additionalHeaders)
List all Certificate Signing Requests
Lists all Certificate Signing Requests for an application
|
JsonWebKey |
publishCsrFromApplication(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 credentials
|
JsonWebKey |
publishCsrFromApplication(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 credentials
|
void |
revokeCsrFromApplication(String appId,
String csrId)
Revoke a Certificate Signing Request
Revokes a certificate signing request and deletes the key pair from the application
|
void |
revokeCsrFromApplication(String appId,
String csrId,
Map<String,String> additionalHeaders)
Revoke a Certificate Signing Request
Revokes a certificate signing request and deletes the key pair from the application
|
void |
setApiClient(ApiClient apiClient) |
public ApplicationCredentialsApi()
public ApplicationCredentialsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public JsonWebKey cloneApplicationKey(String appId, String keyId, String targetAid) throws ApiException
appId
- ID of the Application (required)keyId
- ID of the Key Credential for the application (required)targetAid
- Unique key of the target Application (required)ApiException
- if fails to make API callpublic JsonWebKey cloneApplicationKey(String appId, String keyId, String targetAid, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)keyId
- ID of the Key Credential for the application (required)targetAid
- Unique key of the target Application (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic JsonWebKey generateApplicationKey(String appId, Integer validityYears) throws ApiException
appId
- ID of the Application (required)validityYears
- (optional)ApiException
- if fails to make API callpublic JsonWebKey generateApplicationKey(String appId, Integer validityYears, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)validityYears
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Csr generateCsrForApplication(String appId, CsrMetadata metadata) throws ApiException
appId
- ID of the Application (required)metadata
- (required)ApiException
- if fails to make API callpublic Csr generateCsrForApplication(String appId, CsrMetadata metadata, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)metadata
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic JsonWebKey getApplicationKey(String appId, String keyId) throws ApiException
appId
- ID of the Application (required)keyId
- ID of the Key Credential for the application (required)ApiException
- if fails to make API callpublic JsonWebKey getApplicationKey(String appId, String keyId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)keyId
- ID of the Key Credential for the application (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic Csr getCsrForApplication(String appId, String csrId) throws ApiException
appId
- ID of the Application (required)csrId
- `id` of the CSR (required)ApiException
- if fails to make API callpublic Csr getCsrForApplication(String appId, String csrId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)csrId
- `id` of the CSR (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<JsonWebKey> listApplicationKeys(String appId) throws ApiException
appId
- ID of the Application (required)ApiException
- if fails to make API callpublic List<JsonWebKey> listApplicationKeys(String appId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<Csr> listCsrsForApplication(String appId) throws ApiException
appId
- ID of the Application (required)ApiException
- if fails to make API callpublic List<Csr> listCsrsForApplication(String appId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic JsonWebKey publishCsrFromApplication(String appId, String csrId, File body) throws ApiException
appId
- ID of the Application (required)csrId
- `id` of the CSR (required)body
- (required)ApiException
- if fails to make API callpublic JsonWebKey publishCsrFromApplication(String appId, String csrId, File body, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)csrId
- `id` of the CSR (required)body
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void revokeCsrFromApplication(String appId, String csrId) throws ApiException
appId
- ID of the Application (required)csrId
- `id` of the CSR (required)ApiException
- if fails to make API callpublic void revokeCsrFromApplication(String appId, String csrId, Map<String,String> additionalHeaders) throws ApiException
appId
- ID of the Application (required)csrId
- `id` of the CSR (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.