[java-openws COMMIT] /branches/REL_1/src/main/java/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java

noreply at shibboleth.net noreply at shibboleth.net
Wed Mar 13 21:12:43 EDT 2013


Author: putmanb
Date: Wed Mar 13 21:12:43 2013
New Revision: 445

URL: http://svn.shibboleth.net/view/java-openws?rev=445&view=rev
Log:
Fix some formatting.

Modified:
    branches/REL_1/src/main/java/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java

Modified: branches/REL_1/src/main/java/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java
URL: http://svn.shibboleth.net/view/java-openws/branches/REL_1/src/main/java/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java?rev=445&r1=444&r2=445&view=diff
==============================================================================
--- branches/REL_1/src/main/java/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java (original)
+++ branches/REL_1/src/main/java/org/opensaml/ws/soap/client/http/TLSProtocolSocketFactory.java Wed Mar 13 21:12:43 2013
@@ -228,17 +228,17 @@
         try {
             SSLSession sslSession = sslSocket.getSession();
             String hostname = sslSession.getPeerHost();
-        
+            
             if (!hostnameVerifier.verify(hostname, sslSession)) {
                 throw new SSLPeerUnverifiedException("SSL peer failed hostname validation for name: " + hostname);
             }
         } catch (SSLException e) {
             cleanUpFailedSocket(sslSocket);
             throw e;
-       } catch (Throwable t) {
-           // Make sure we close the socket on any kind of Exception, RuntimeException or Error.
-           cleanUpFailedSocket(sslSocket);
-           throw new SSLException("Error in hostname verification", t);
+        } catch (Throwable t) {
+            // Make sure we close the socket on any kind of Exception, RuntimeException or Error.
+            cleanUpFailedSocket(sslSocket);
+            throw new SSLException("Error in hostname verification", t);
         }
     }
     



More information about the commits mailing list