Code example for SSLSocket

Methods: close

0
 
   public Socket createSocket(Socket var1, String var2, int var3, boolean var4) throws IOException, UnknownHostException {
      SSLSocket var5 = (SSLSocket)this.socketfactory.createSocket(var1, var2, var3, var4);
 
      try { 
         this.hostnameVerifier.verify(var2, var5);
         return var5;
      } catch (IOException var9) {
         try { 
            var5.close();
         } catch (Exception var8) {
            ; 
         } 
 
         throw var9;
      } 
   } 
 
   public X509HostnameVerifier getHostnameVerifier() {
      return this.hostnameVerifier;
   }