geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [07/50] [abbrv] incubator-geode git commit: GEODE-1570: add a test to verify rest security with SSL, fix the format.
Date Tue, 15 Nov 2016 20:48:54 GMT
GEODE-1570: add a test to verify rest security with SSL, fix the format.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7973d578
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7973d578
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7973d578

Branch: refs/heads/feature/GEODE-1930
Commit: 7973d578ec16b8c9d185d8e291193b8828fde856
Parents: 5907e98
Author: Jinmei Liao <jiliao@pivotal.io>
Authored: Wed Nov 9 10:45:53 2016 -0800
Committer: Jinmei Liao <jiliao@pivotal.io>
Committed: Wed Nov 9 10:45:53 2016 -0800

----------------------------------------------------------------------
 .../org/apache/geode/rest/internal/web/GeodeRestClient.java  | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7973d578/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/GeodeRestClient.java
----------------------------------------------------------------------
diff --git a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/GeodeRestClient.java
b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/GeodeRestClient.java
index 4510e20..1671e53 100644
--- a/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/GeodeRestClient.java
+++ b/geode-assembly/src/test/java/org/apache/geode/rest/internal/web/GeodeRestClient.java
@@ -152,7 +152,7 @@ public class GeodeRestClient {
 
     if (useHttps) {
       SSLContext ctx = SSLContext.getInstance("TLS");
-      ctx.init(new KeyManager[0], new TrustManager[]{new DefaultTrustManager()},
+      ctx.init(new KeyManager[0], new TrustManager[] {new DefaultTrustManager()},
           new SecureRandom());
       clientBuilder.setSSLContext(ctx);
       clientBuilder.setSSLHostnameVerifier(new NoopHostnameVerifier());
@@ -165,13 +165,11 @@ public class GeodeRestClient {
 
     @Override
     public void checkClientTrusted(X509Certificate[] arg0, String arg1)
-        throws CertificateException {
-    }
+        throws CertificateException {}
 
     @Override
     public void checkServerTrusted(X509Certificate[] arg0, String arg1)
-        throws CertificateException {
-    }
+        throws CertificateException {}
 
     @Override
     public X509Certificate[] getAcceptedIssuers() {


Mime
View raw message