Add some SSL options Java okhttp-gson client

* Add the `verifyingSsl` option to allow skipping verifying SSL
  certificate and host name (default to verify)
* Add `sslCaCert` to allow customizing the CA certificates
This commit is contained in:
xhh
2015-09-30 19:45:45 +08:00
parent 053af7a749
commit f483f934d8
3 changed files with 239 additions and 3 deletions

View File

@@ -1299,7 +1299,9 @@ public class DefaultCodegen {
sec.flow = oauth2Definition.getFlow();
sec.authorizationUrl = oauth2Definition.getAuthorizationUrl();
sec.tokenUrl = oauth2Definition.getTokenUrl();
sec.scopes = oauth2Definition.getScopes().keySet();
if (oauth2Definition.getScopes() != null) {
sec.scopes = oauth2Definition.getScopes().keySet();
}
}
sec.hasMore = it.hasNext();