Skip to content

Commit ac120ba

Browse files
author
Hayden Roszell
committed
Create scenarios for metadata
1 parent 16d23f0 commit ac120ba

File tree

381 files changed

+667
-390
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

381 files changed

+667
-390
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Keyfactor-v1
44
- API version: v1
5-
- Build date: 2022-11-08T11:48:36.483-07:00[America/Phoenix]
65

76
This reference serves to document REST-based methods to manage and integrate with Keyfactor. In addition, an embedded interface allows for the execution of calls against the current Keyfactor API instance.
87

api/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2776,6 +2776,15 @@ paths:
27762776
default: "1"
27772777
type: string
27782778
style: simple
2779+
- description: "Desired format [PFX, PEM]"
2780+
explode: false
2781+
in: header
2782+
name: x-certificateformat
2783+
required: true
2784+
schema:
2785+
default: PEM
2786+
type: string
2787+
style: simple
27792788
- description: "Type of the request [XMLHttpRequest, APIClient]"
27802789
explode: false
27812790
in: header

docs/CertificateApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ public class Example {
11441144

11451145
<a name="certificateRecoverCertificateAsync"></a>
11461146
# **certificateRecoverCertificateAsync**
1147-
> ModelsRecoveryResponse certificateRecoverCertificateAsync(xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion)
1147+
> ModelsRecoveryResponse certificateRecoverCertificateAsync(xCertificateformat, xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion)
11481148
11491149
Recovers the persisted certificate associated with the provided query
11501150

@@ -1171,12 +1171,13 @@ public class Example {
11711171
basicAuth.setPassword("YOUR PASSWORD");
11721172

11731173
CertificateApi apiInstance = new CertificateApi(defaultClient);
1174+
String xCertificateformat = "PEM"; // String | Desired format [PFX, PEM]
11741175
String xKeyfactorRequestedWith = "APIClient"; // String | Type of the request [XMLHttpRequest, APIClient]
11751176
ModelsCertificateRecoveryRequest rq = new ModelsCertificateRecoveryRequest(); // ModelsCertificateRecoveryRequest | Query to filter the certificate to be recovered
11761177
Integer collectionId = 56; // Integer | Optional certificate collection identifier used to ensure user access to the certificate
11771178
String xKeyfactorApiVersion = "1"; // String | Desired version of the api, if not provided defaults to v1
11781179
try {
1179-
ModelsRecoveryResponse result = apiInstance.certificateRecoverCertificateAsync(xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion);
1180+
ModelsRecoveryResponse result = apiInstance.certificateRecoverCertificateAsync(xCertificateformat, xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion);
11801181
System.out.println(result);
11811182
} catch (ApiException e) {
11821183
System.err.println("Exception when calling CertificateApi#certificateRecoverCertificateAsync");
@@ -1193,6 +1194,7 @@ public class Example {
11931194

11941195
| Name | Type | Description | Notes |
11951196
|------------- | ------------- | ------------- | -------------|
1197+
| **xCertificateformat** | **String**| Desired format [PFX, PEM] | [default to PEM] |
11961198
| **xKeyfactorRequestedWith** | **String**| Type of the request [XMLHttpRequest, APIClient] | [default to APIClient] |
11971199
| **rq** | [**ModelsCertificateRecoveryRequest**](ModelsCertificateRecoveryRequest.md)| Query to filter the certificate to be recovered | |
11981200
| **collectionId** | **Integer**| Optional certificate collection identifier used to ensure user access to the certificate | [optional] |

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
<developers>
2626
<developer>
27-
<name>OpenAPI-Generator Contributors</name>
27+
<name>Keyfactor</name>
2828
<email>team@openapitools.org</email>
29-
<organization>OpenAPITools.org</organization>
30-
<organizationUrl>http://openapitools.org</organizationUrl>
29+
<organization>Keyfactor</organization>
30+
<organizationUrl>keyfactor.com</organizationUrl>
3131
</developer>
3232
</developers>
3333

src/main/java/com/keyfactor/command/client/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* <p>ApiException class.</p>
2323
*/
2424
@SuppressWarnings("serial")
25-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-08T11:48:36.483-07:00[America/Phoenix]")
25+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
2626
public class ApiException extends Exception {
2727
private int code = 0;
2828
private Map<String, List<String>> responseHeaders = null;

src/main/java/com/keyfactor/command/client/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package com.keyfactor.command.client;
1515

16-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-08T11:48:36.483-07:00[America/Phoenix]")
16+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
1717
public class Configuration {
1818
private static ApiClient defaultApiClient = new ApiClient();
1919

src/main/java/com/keyfactor/command/client/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package com.keyfactor.command.client;
1515

16-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-08T11:48:36.483-07:00[America/Phoenix]")
16+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
1717
public class Pair {
1818
private String name = "";
1919
private String value = "";

src/main/java/com/keyfactor/command/client/StringUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Collection;
1717
import java.util.Iterator;
1818

19-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-08T11:48:36.483-07:00[America/Phoenix]")
19+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
2020
public class StringUtil {
2121
/**
2222
* Check if the given array contains the given value (with case-insensitive comparison).

src/main/java/com/keyfactor/command/client/api/CertificateApi.java

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,6 +2526,7 @@ public okhttp3.Call certificateQueryCertificatesAsync(String xKeyfactorRequested
25262526
}
25272527
/**
25282528
* Build call for certificateRecoverCertificateAsync
2529+
* @param xCertificateformat Desired format [PFX, PEM] (required)
25292530
* @param xKeyfactorRequestedWith Type of the request [XMLHttpRequest, APIClient] (required)
25302531
* @param rq Query to filter the certificate to be recovered (required)
25312532
* @param collectionId Optional certificate collection identifier used to ensure user access to the certificate (optional)
@@ -2539,7 +2540,7 @@ public okhttp3.Call certificateQueryCertificatesAsync(String xKeyfactorRequested
25392540
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
25402541
</table>
25412542
*/
2542-
public okhttp3.Call certificateRecoverCertificateAsyncCall(String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion, final ApiCallback _callback) throws ApiException {
2543+
public okhttp3.Call certificateRecoverCertificateAsyncCall(String xCertificateformat, String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion, final ApiCallback _callback) throws ApiException {
25432544
String basePath = null;
25442545
// Operation Servers
25452546
String[] localBasePaths = new String[] { };
@@ -2572,6 +2573,10 @@ public okhttp3.Call certificateRecoverCertificateAsyncCall(String xKeyfactorRequ
25722573
localVarHeaderParams.put("x-keyfactor-api-version", localVarApiClient.parameterToString(xKeyfactorApiVersion));
25732574
}
25742575

2576+
if (xCertificateformat != null) {
2577+
localVarHeaderParams.put("x-certificateformat", localVarApiClient.parameterToString(xCertificateformat));
2578+
}
2579+
25752580
if (xKeyfactorRequestedWith != null) {
25762581
localVarHeaderParams.put("x-keyfactor-requested-with", localVarApiClient.parameterToString(xKeyfactorRequestedWith));
25772582
}
@@ -2597,7 +2602,12 @@ public okhttp3.Call certificateRecoverCertificateAsyncCall(String xKeyfactorRequ
25972602
}
25982603

25992604
@SuppressWarnings("rawtypes")
2600-
private okhttp3.Call certificateRecoverCertificateAsyncValidateBeforeCall(String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion, final ApiCallback _callback) throws ApiException {
2605+
private okhttp3.Call certificateRecoverCertificateAsyncValidateBeforeCall(String xCertificateformat, String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion, final ApiCallback _callback) throws ApiException {
2606+
// verify the required parameter 'xCertificateformat' is set
2607+
if (xCertificateformat == null) {
2608+
throw new ApiException("Missing the required parameter 'xCertificateformat' when calling certificateRecoverCertificateAsync(Async)");
2609+
}
2610+
26012611
// verify the required parameter 'xKeyfactorRequestedWith' is set
26022612
if (xKeyfactorRequestedWith == null) {
26032613
throw new ApiException("Missing the required parameter 'xKeyfactorRequestedWith' when calling certificateRecoverCertificateAsync(Async)");
@@ -2608,13 +2618,14 @@ private okhttp3.Call certificateRecoverCertificateAsyncValidateBeforeCall(String
26082618
throw new ApiException("Missing the required parameter 'rq' when calling certificateRecoverCertificateAsync(Async)");
26092619
}
26102620

2611-
return certificateRecoverCertificateAsyncCall(xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion, _callback);
2621+
return certificateRecoverCertificateAsyncCall(xCertificateformat, xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion, _callback);
26122622

26132623
}
26142624

26152625
/**
26162626
* Recovers the persisted certificate associated with the provided query
26172627
* *NOTE: At least one of the following criteria must be provided: 1. Certificate ID 2. Thumbprint 3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own)
2628+
* @param xCertificateformat Desired format [PFX, PEM] (required)
26182629
* @param xKeyfactorRequestedWith Type of the request [XMLHttpRequest, APIClient] (required)
26192630
* @param rq Query to filter the certificate to be recovered (required)
26202631
* @param collectionId Optional certificate collection identifier used to ensure user access to the certificate (optional)
@@ -2627,14 +2638,15 @@ private okhttp3.Call certificateRecoverCertificateAsyncValidateBeforeCall(String
26272638
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
26282639
</table>
26292640
*/
2630-
public ModelsRecoveryResponse certificateRecoverCertificateAsync(String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion) throws ApiException {
2631-
ApiResponse<ModelsRecoveryResponse> localVarResp = certificateRecoverCertificateAsyncWithHttpInfo(xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion);
2641+
public ModelsRecoveryResponse certificateRecoverCertificateAsync(String xCertificateformat, String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion) throws ApiException {
2642+
ApiResponse<ModelsRecoveryResponse> localVarResp = certificateRecoverCertificateAsyncWithHttpInfo(xCertificateformat, xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion);
26322643
return localVarResp.getData();
26332644
}
26342645

26352646
/**
26362647
* Recovers the persisted certificate associated with the provided query
26372648
* *NOTE: At least one of the following criteria must be provided: 1. Certificate ID 2. Thumbprint 3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own)
2649+
* @param xCertificateformat Desired format [PFX, PEM] (required)
26382650
* @param xKeyfactorRequestedWith Type of the request [XMLHttpRequest, APIClient] (required)
26392651
* @param rq Query to filter the certificate to be recovered (required)
26402652
* @param collectionId Optional certificate collection identifier used to ensure user access to the certificate (optional)
@@ -2647,15 +2659,16 @@ public ModelsRecoveryResponse certificateRecoverCertificateAsync(String xKeyfact
26472659
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
26482660
</table>
26492661
*/
2650-
public ApiResponse<ModelsRecoveryResponse> certificateRecoverCertificateAsyncWithHttpInfo(String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion) throws ApiException {
2651-
okhttp3.Call localVarCall = certificateRecoverCertificateAsyncValidateBeforeCall(xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion, null);
2662+
public ApiResponse<ModelsRecoveryResponse> certificateRecoverCertificateAsyncWithHttpInfo(String xCertificateformat, String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion) throws ApiException {
2663+
okhttp3.Call localVarCall = certificateRecoverCertificateAsyncValidateBeforeCall(xCertificateformat, xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion, null);
26522664
Type localVarReturnType = new TypeToken<ModelsRecoveryResponse>(){}.getType();
26532665
return localVarApiClient.execute(localVarCall, localVarReturnType);
26542666
}
26552667

26562668
/**
26572669
* Recovers the persisted certificate associated with the provided query (asynchronously)
26582670
* *NOTE: At least one of the following criteria must be provided: 1. Certificate ID 2. Thumbprint 3. Serial number AND Issuer DN (because Serial Number is CA-specific and so is not unique enough on its own)
2671+
* @param xCertificateformat Desired format [PFX, PEM] (required)
26592672
* @param xKeyfactorRequestedWith Type of the request [XMLHttpRequest, APIClient] (required)
26602673
* @param rq Query to filter the certificate to be recovered (required)
26612674
* @param collectionId Optional certificate collection identifier used to ensure user access to the certificate (optional)
@@ -2669,9 +2682,9 @@ public ApiResponse<ModelsRecoveryResponse> certificateRecoverCertificateAsyncWit
26692682
<tr><td> 200 </td><td> OK </td><td> - </td></tr>
26702683
</table>
26712684
*/
2672-
public okhttp3.Call certificateRecoverCertificateAsyncAsync(String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion, final ApiCallback<ModelsRecoveryResponse> _callback) throws ApiException {
2685+
public okhttp3.Call certificateRecoverCertificateAsyncAsync(String xCertificateformat, String xKeyfactorRequestedWith, ModelsCertificateRecoveryRequest rq, Integer collectionId, String xKeyfactorApiVersion, final ApiCallback<ModelsRecoveryResponse> _callback) throws ApiException {
26732686

2674-
okhttp3.Call localVarCall = certificateRecoverCertificateAsyncValidateBeforeCall(xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion, _callback);
2687+
okhttp3.Call localVarCall = certificateRecoverCertificateAsyncValidateBeforeCall(xCertificateformat, xKeyfactorRequestedWith, rq, collectionId, xKeyfactorApiVersion, _callback);
26752688
Type localVarReturnType = new TypeToken<ModelsRecoveryResponse>(){}.getType();
26762689
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
26772690
return localVarCall;

src/main/java/com/keyfactor/command/client/auth/ApiKeyAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.Map;
2121
import java.util.List;
2222

23-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-11-08T11:48:36.483-07:00[America/Phoenix]")
23+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
2424
public class ApiKeyAuth implements Authentication {
2525
private final String location;
2626
private final String paramName;

0 commit comments

Comments
 (0)