forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
@@ -62,6 +62,7 @@ public class ApiClient {
|
||||
|
||||
private InputStream sslCaCert;
|
||||
private boolean verifyingSsl;
|
||||
private KeyManager[] keyManagers;
|
||||
|
||||
private OkHttpClient httpClient;
|
||||
private JSON json;
|
||||
@@ -200,6 +201,27 @@ public class ApiClient {
|
||||
return this;
|
||||
}
|
||||
|
||||
public KeyManager[] getKeyManagers() {
|
||||
return keyManagers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure client keys to use for authorization in an SSL session.
|
||||
* Use null to reset to default.
|
||||
*
|
||||
* @param managers The KeyManagers to use
|
||||
* @return ApiClient
|
||||
*/
|
||||
public ApiClient setKeyManagers(KeyManager[] managers) {
|
||||
this.keyManagers = managers;
|
||||
applySslSettings();
|
||||
return this;
|
||||
}
|
||||
|
||||
public DateFormat getDateFormat() {
|
||||
return dateFormat;
|
||||
}
|
||||
|
||||
public ApiClient setDateFormat(DateFormat dateFormat) {
|
||||
this.json.setDateFormat(dateFormat);
|
||||
return this;
|
||||
@@ -1046,7 +1068,6 @@ public class ApiClient {
|
||||
*/
|
||||
private void applySslSettings() {
|
||||
try {
|
||||
KeyManager[] keyManagers = null;
|
||||
TrustManager[] trustManagers = null;
|
||||
HostnameVerifier hostnameVerifier = null;
|
||||
if (!verifyingSsl) {
|
||||
|
||||
@@ -25,6 +25,10 @@ public enum {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public {{{dataType}}} getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
{{#jackson}}
|
||||
@JsonValue
|
||||
|
||||
@@ -26,6 +26,10 @@
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public {{{datatype}}} getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
{{#jackson}}
|
||||
@JsonValue
|
||||
|
||||
Reference in New Issue
Block a user