Code example for KeyManagementException

Methods: printStackTrace

0
        } 
        catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        } 
        catch (KeyManagementException e) {
            e.printStackTrace();
        } 
    } 
 
    public static SocketFactory getDefault() {
        return new DummySSLSocketFactory(); 
    } 
 
    public Socket createSocket(Socket socket, String s, int i, boolean flag)
            throws IOException { 
        return factory.createSocket(socket, s, i, flag);
    } 
 
    public Socket createSocket(InetAddress inaddr, int i, InetAddress inaddr2, int j)
            throws IOException { 
        return factory.createSocket(inaddr, i, inaddr2, j);