@Test void testCreateSocket_HostParameter() throws IOException { SpiffeSslSocketFactory socketFactory = new SpiffeSslSocketFactory(sslSocketFactoryMock); Socket expected = new Socket(); when(sslSocketFactoryMock.createSocket("string", 1)).thenReturn(expected); Socket socket = socketFactory.createSocket("string", 1); assertEquals(expected, socket); }
@Override public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException { return delegate.createSocket(socket, s, i, b); }
SpiffeSslSocketFactory extends SSLSocketFactory { @Override public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException { return delegate.createSocket(socket, s, i, b); } }
SpiffeSslSocketFactory extends SSLSocketFactory { @Override public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException { return delegate.createSocket(socket, s, i, b); } SpiffeSslSocketFactory(final SslContextOptions contextOptions);   SpiffeSslSocketFactory(final SSLSocketFactory delegate); }
SpiffeSslSocketFactory extends SSLSocketFactory { @Override public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException { return delegate.createSocket(socket, s, i, b); } SpiffeSslSocketFactory(final SslContextOptions contextOptions);   SpiffeSslSocketFactory(final SSLSocketFactory delegate); @Override String[] getDefaultCipherSuites(); @Override String[] getSupportedCipherSuites(); @Override Socket createSocket(Socket socket, String s, int i, boolean b); @Override Socket createSocket(String s, int i); @Override Socket createSocket(String s, int i, InetAddress inetAddress, int i1); @Override Socket createSocket(InetAddress inetAddress, int i); @Override Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1); @Override Socket createSocket(); }
SpiffeSslSocketFactory extends SSLSocketFactory { @Override public Socket createSocket(Socket socket, String s, int i, boolean b) throws IOException { return delegate.createSocket(socket, s, i, b); } SpiffeSslSocketFactory(final SslContextOptions contextOptions);   SpiffeSslSocketFactory(final SSLSocketFactory delegate); @Override String[] getDefaultCipherSuites(); @Override String[] getSupportedCipherSuites(); @Override Socket createSocket(Socket socket, String s, int i, boolean b); @Override Socket createSocket(String s, int i); @Override Socket createSocket(String s, int i, InetAddress inetAddress, int i1); @Override Socket createSocket(InetAddress inetAddress, int i); @Override Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1); @Override Socket createSocket();  }