@@ -26,13 +26,19 @@ Approve a list of agents
2626import com.keyfactor.command.client.ApiClient ;
2727import com.keyfactor.command.client.ApiException ;
2828import com.keyfactor.command.client.Configuration ;
29+ import com.keyfactor.command.client.auth.* ;
2930import com.keyfactor.command.client.models.* ;
3031import com.keyfactor.command.client.api.AgentApi ;
3132
3233public class Example {
3334 public static void main (String [] args ) {
3435 ApiClient defaultClient = Configuration . getDefaultApiClient();
3536 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
37+
38+ // Configure HTTP basic authorization: basicAuth
39+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
40+ basicAuth. setUsername(" YOUR USERNAME" );
41+ basicAuth. setPassword(" YOUR PASSWORD" );
3642
3743 AgentApi apiInstance = new AgentApi (defaultClient);
3844 String xKeyfactorRequestedWith = " APIClient" ; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -65,7 +71,7 @@ null (empty response body)
6571
6672### Authorization
6773
68- No authorization required
74+ [ basicAuth ] ( ../README.md#basicAuth )
6975
7076### HTTP request headers
7177
@@ -89,13 +95,19 @@ Disapprove a list of agents
8995import com.keyfactor.command.client.ApiClient ;
9096import com.keyfactor.command.client.ApiException ;
9197import com.keyfactor.command.client.Configuration ;
98+ import com.keyfactor.command.client.auth.* ;
9299import com.keyfactor.command.client.models.* ;
93100import com.keyfactor.command.client.api.AgentApi ;
94101
95102public class Example {
96103 public static void main (String [] args ) {
97104 ApiClient defaultClient = Configuration . getDefaultApiClient();
98105 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
106+
107+ // Configure HTTP basic authorization: basicAuth
108+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
109+ basicAuth. setUsername(" YOUR USERNAME" );
110+ basicAuth. setPassword(" YOUR PASSWORD" );
99111
100112 AgentApi apiInstance = new AgentApi (defaultClient);
101113 String xKeyfactorRequestedWith = " APIClient" ; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -128,7 +140,7 @@ null (empty response body)
128140
129141### Authorization
130142
131- No authorization required
143+ [ basicAuth ] ( ../README.md#basicAuth )
132144
133145### HTTP request headers
134146
@@ -152,13 +164,19 @@ Schedules a job on the agent to retrieve log files
152164import com.keyfactor.command.client.ApiClient ;
153165import com.keyfactor.command.client.ApiException ;
154166import com.keyfactor.command.client.Configuration ;
167+ import com.keyfactor.command.client.auth.* ;
155168import com.keyfactor.command.client.models.* ;
156169import com.keyfactor.command.client.api.AgentApi ;
157170
158171public class Example {
159172 public static void main (String [] args ) {
160173 ApiClient defaultClient = Configuration . getDefaultApiClient();
161174 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
175+
176+ // Configure HTTP basic authorization: basicAuth
177+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
178+ basicAuth. setUsername(" YOUR USERNAME" );
179+ basicAuth. setPassword(" YOUR PASSWORD" );
162180
163181 AgentApi apiInstance = new AgentApi (defaultClient);
164182 UUID id = UUID . randomUUID(); // UUID | Guid Id of the agent to schedule the job for.
@@ -191,7 +209,7 @@ null (empty response body)
191209
192210### Authorization
193211
194- No authorization required
212+ [ basicAuth ] ( ../README.md#basicAuth )
195213
196214### HTTP request headers
197215
@@ -215,13 +233,19 @@ Returns details for a single agent, specified by ID
215233import com.keyfactor.command.client.ApiClient ;
216234import com.keyfactor.command.client.ApiException ;
217235import com.keyfactor.command.client.Configuration ;
236+ import com.keyfactor.command.client.auth.* ;
218237import com.keyfactor.command.client.models.* ;
219238import com.keyfactor.command.client.api.AgentApi ;
220239
221240public class Example {
222241 public static void main (String [] args ) {
223242 ApiClient defaultClient = Configuration . getDefaultApiClient();
224243 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
244+
245+ // Configure HTTP basic authorization: basicAuth
246+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
247+ basicAuth. setUsername(" YOUR USERNAME" );
248+ basicAuth. setPassword(" YOUR PASSWORD" );
225249
226250 AgentApi apiInstance = new AgentApi (defaultClient);
227251 UUID id = UUID . randomUUID(); // UUID | Agent Id to Search
@@ -255,7 +279,7 @@ public class Example {
255279
256280### Authorization
257281
258- No authorization required
282+ [ basicAuth ] ( ../README.md#basicAuth )
259283
260284### HTTP request headers
261285
@@ -279,13 +303,19 @@ Returns all agents according to the provided filter and output parameters
279303import com.keyfactor.command.client.ApiClient ;
280304import com.keyfactor.command.client.ApiException ;
281305import com.keyfactor.command.client.Configuration ;
306+ import com.keyfactor.command.client.auth.* ;
282307import com.keyfactor.command.client.models.* ;
283308import com.keyfactor.command.client.api.AgentApi ;
284309
285310public class Example {
286311 public static void main (String [] args ) {
287312 ApiClient defaultClient = Configuration . getDefaultApiClient();
288313 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
314+
315+ // Configure HTTP basic authorization: basicAuth
316+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
317+ basicAuth. setUsername(" YOUR USERNAME" );
318+ basicAuth. setPassword(" YOUR PASSWORD" );
289319
290320 AgentApi apiInstance = new AgentApi (defaultClient);
291321 String xKeyfactorRequestedWith = " APIClient" ; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -327,7 +357,7 @@ public class Example {
327357
328358### Authorization
329359
330- No authorization required
360+ [ basicAuth ] ( ../README.md#basicAuth )
331361
332362### HTTP request headers
333363
@@ -351,13 +381,19 @@ Reset a list of agents
351381import com.keyfactor.command.client.ApiClient ;
352382import com.keyfactor.command.client.ApiException ;
353383import com.keyfactor.command.client.Configuration ;
384+ import com.keyfactor.command.client.auth.* ;
354385import com.keyfactor.command.client.models.* ;
355386import com.keyfactor.command.client.api.AgentApi ;
356387
357388public class Example {
358389 public static void main (String [] args ) {
359390 ApiClient defaultClient = Configuration . getDefaultApiClient();
360391 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
392+
393+ // Configure HTTP basic authorization: basicAuth
394+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
395+ basicAuth. setUsername(" YOUR USERNAME" );
396+ basicAuth. setPassword(" YOUR PASSWORD" );
361397
362398 AgentApi apiInstance = new AgentApi (defaultClient);
363399 String xKeyfactorRequestedWith = " APIClient" ; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -390,7 +426,7 @@ null (empty response body)
390426
391427### Authorization
392428
393- No authorization required
429+ [ basicAuth ] ( ../README.md#basicAuth )
394430
395431### HTTP request headers
396432
@@ -414,13 +450,19 @@ Reset an agent to a new state
414450import com.keyfactor.command.client.ApiClient ;
415451import com.keyfactor.command.client.ApiException ;
416452import com.keyfactor.command.client.Configuration ;
453+ import com.keyfactor.command.client.auth.* ;
417454import com.keyfactor.command.client.models.* ;
418455import com.keyfactor.command.client.api.AgentApi ;
419456
420457public class Example {
421458 public static void main (String [] args ) {
422459 ApiClient defaultClient = Configuration . getDefaultApiClient();
423460 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
461+
462+ // Configure HTTP basic authorization: basicAuth
463+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
464+ basicAuth. setUsername(" YOUR USERNAME" );
465+ basicAuth. setPassword(" YOUR PASSWORD" );
424466
425467 AgentApi apiInstance = new AgentApi (defaultClient);
426468 UUID id = UUID . randomUUID(); // UUID | Guid Id of Agent to reset
@@ -453,7 +495,7 @@ null (empty response body)
453495
454496### Authorization
455497
456- No authorization required
498+ [ basicAuth ] ( ../README.md#basicAuth )
457499
458500### HTTP request headers
459501
@@ -477,13 +519,19 @@ Update the AuthCertificateReenrollment value for an agent to request or require
477519import com.keyfactor.command.client.ApiClient ;
478520import com.keyfactor.command.client.ApiException ;
479521import com.keyfactor.command.client.Configuration ;
522+ import com.keyfactor.command.client.auth.* ;
480523import com.keyfactor.command.client.models.* ;
481524import com.keyfactor.command.client.api.AgentApi ;
482525
483526public class Example {
484527 public static void main (String [] args ) {
485528 ApiClient defaultClient = Configuration . getDefaultApiClient();
486529 defaultClient. setBasePath(" https://192.168.78.139/KeyfactorAPI" );
530+
531+ // Configure HTTP basic authorization: basicAuth
532+ HttpBasicAuth basicAuth = (HttpBasicAuth ) defaultClient. getAuthentication(" basicAuth" );
533+ basicAuth. setUsername(" YOUR USERNAME" );
534+ basicAuth. setPassword(" YOUR PASSWORD" );
487535
488536 AgentApi apiInstance = new AgentApi (defaultClient);
489537 String xKeyfactorRequestedWith = " APIClient" ; // String | Type of the request [XMLHttpRequest, APIClient]
@@ -517,7 +565,7 @@ public class Example {
517565
518566### Authorization
519567
520- No authorization required
568+ [ basicAuth ] ( ../README.md#basicAuth )
521569
522570### HTTP request headers
523571
0 commit comments