All URIs are relative to https://192.168.78.139/KeyfactorAPI
| Method | HTTP request | Description |
|---|---|---|
| certificateAuthorityCreateCA | POST /CertificateAuthority | Creates a new CertificateAuthority object |
| certificateAuthorityDeleteCA | DELETE /CertificateAuthority/{id} | Deletes a CertificateAuthority from the system, specified by ID |
| certificateAuthorityGetCa | GET /CertificateAuthority/{id} | Returns details for a single CA, specified by ID |
| certificateAuthorityGetCas | GET /CertificateAuthority | Returns all certificate authorities |
| certificateAuthorityPublishCRL | POST /CertificateAuthority/PublishCRL | Publishes a CRL according to the provided request |
| certificateAuthorityTestCertificateAuthority | POST /CertificateAuthority/Test | Validates the connection info for the CA provided by the model. |
| certificateAuthorityUpdateCA | PUT /CertificateAuthority | Updates a CertificateAuthority object |
ModelsCertificateAuthoritiesCertificateAuthorityResponse certificateAuthorityCreateCA(xKeyfactorRequestedWith, ca, xKeyfactorApiVersion)
Creates a new CertificateAuthority object
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
ModelsCertificateAuthoritiesCertificateAuthorityRequest ca = new ModelsCertificateAuthoritiesCertificateAuthorityRequest(); // ModelsCertificateAuthoritiesCertificateAuthorityRequest |
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
try {
ModelsCertificateAuthoritiesCertificateAuthorityResponse result = apiInstance.certificateAuthorityCreateCA(xKeyfactorRequestedWith, ca, xKeyfactorApiVersion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityCreateCA");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| ca | ModelsCertificateAuthoritiesCertificateAuthorityRequest | ||
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
ModelsCertificateAuthoritiesCertificateAuthorityResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
certificateAuthorityDeleteCA(id, xKeyfactorRequestedWith, xKeyfactorApiVersion)
Deletes a CertificateAuthority from the system, specified by ID
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
Integer id = 56; // Integer |
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
try {
apiInstance.certificateAuthorityDeleteCA(id, xKeyfactorRequestedWith, xKeyfactorApiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityDeleteCA");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | ||
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
ModelsCertificateAuthoritiesCertificateAuthorityResponse certificateAuthorityGetCa(id, xKeyfactorRequestedWith, xKeyfactorApiVersion)
Returns details for a single CA, specified by ID
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
Integer id = 56; // Integer |
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
try {
ModelsCertificateAuthoritiesCertificateAuthorityResponse result = apiInstance.certificateAuthorityGetCa(id, xKeyfactorRequestedWith, xKeyfactorApiVersion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityGetCa");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | ||
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
ModelsCertificateAuthoritiesCertificateAuthorityResponse
- Content-Type: Not defined
- Accept: application/json, text/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
List<ModelsCertificateAuthoritiesCertificateAuthorityResponse> certificateAuthorityGetCas(xKeyfactorRequestedWith, xKeyfactorApiVersion, pqQueryString, pqPageReturned, pqReturnLimit, pqSortField, pqSortAscending)
Returns all certificate authorities
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
String pqQueryString = "pqQueryString_example"; // String | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2)
Integer pqPageReturned = 56; // Integer | The current page within the result set to be returned
Integer pqReturnLimit = 56; // Integer | Maximum number of records to be returned in a single call
String pqSortField = "pqSortField_example"; // String | Field by which the results should be sorted (view results via Management Portal for sortable columns)
Integer pqSortAscending = 0; // Integer | Field sort direction [0=ascending, 1=descending]
try {
List<ModelsCertificateAuthoritiesCertificateAuthorityResponse> result = apiInstance.certificateAuthorityGetCas(xKeyfactorRequestedWith, xKeyfactorApiVersion, pqQueryString, pqPageReturned, pqReturnLimit, pqSortField, pqSortAscending);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityGetCas");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
| pqQueryString | String | Contents of the query (ex: field1 -eq value1 AND field2 -gt value2) | [optional] |
| pqPageReturned | Integer | The current page within the result set to be returned | [optional] |
| pqReturnLimit | Integer | Maximum number of records to be returned in a single call | [optional] |
| pqSortField | String | Field by which the results should be sorted (view results via Management Portal for sortable columns) | [optional] |
| pqSortAscending | Integer | Field sort direction [0=ascending, 1=descending] | [optional] [enum: 0, 1] |
List<ModelsCertificateAuthoritiesCertificateAuthorityResponse>
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
certificateAuthorityPublishCRL(xKeyfactorRequestedWith, crlrequest, xKeyfactorApiVersion)
Publishes a CRL according to the provided request
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
ModelsCRLRequestModel crlrequest = new ModelsCRLRequestModel(); // ModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
try {
apiInstance.certificateAuthorityPublishCRL(xKeyfactorRequestedWith, crlrequest, xKeyfactorApiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityPublishCRL");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| crlrequest | ModelsCRLRequestModel | Host and logical name of the CA for which the CRL should be published | |
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse certificateAuthorityTestCertificateAuthority(xKeyfactorRequestedWith, ca, xKeyfactorApiVersion)
Validates the connection info for the CA provided by the model.
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
ModelsCertificateAuthoritiesCertificateAuthorityRequest ca = new ModelsCertificateAuthoritiesCertificateAuthorityRequest(); // ModelsCertificateAuthoritiesCertificateAuthorityRequest | The CA being tested.
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
try {
KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse result = apiInstance.certificateAuthorityTestCertificateAuthority(xKeyfactorRequestedWith, ca, xKeyfactorApiVersion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityTestCertificateAuthority");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| ca | ModelsCertificateAuthoritiesCertificateAuthorityRequest | The CA being tested. | |
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
KeyfactorApiModelsCertificateAuthoritiesCertificateAuthorityTestResponse
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
ModelsCertificateAuthoritiesCertificateAuthorityResponse certificateAuthorityUpdateCA(xKeyfactorRequestedWith, ca, xKeyfactorApiVersion)
Updates a CertificateAuthority object
// Import classes:
import com.keyfactor.command.client.ApiClient;
import com.keyfactor.command.client.ApiException;
import com.keyfactor.command.client.Configuration;
import com.keyfactor.command.client.auth.*;
import com.keyfactor.command.client.models.*;
import com.keyfactor.command.client.api.CertificateAuthorityApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://192.168.78.139/KeyfactorAPI");
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
CertificateAuthorityApi apiInstance = new CertificateAuthorityApi(defaultClient);
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
ModelsCertificateAuthoritiesCertificateAuthorityRequest ca = new ModelsCertificateAuthoritiesCertificateAuthorityRequest(); // ModelsCertificateAuthoritiesCertificateAuthorityRequest |
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
try {
ModelsCertificateAuthoritiesCertificateAuthorityResponse result = apiInstance.certificateAuthorityUpdateCA(xKeyfactorRequestedWith, ca, xKeyfactorApiVersion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CertificateAuthorityApi#certificateAuthorityUpdateCA");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| xKeyfactorRequestedWith | String | Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
| ca | ModelsCertificateAuthoritiesCertificateAuthorityRequest | ||
| xKeyfactorApiVersion | String | Desired version of the api, if not provided defaults to v1 | [optional] [default to 1] |
ModelsCertificateAuthoritiesCertificateAuthorityResponse
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |