@Test public void getClientContext() throws Exception { contextFactory = new SslContextFactory(null); Assert.assertNotNull(contextFactory); Assert.assertNotNull(contextFactory.getClientContext()); Assert.assertFalse(contextFactory.getClientContext().isPresent()); contextFactory = new SslContextFactory(TLS); Assert.assertNotNull(contextFactory); Assert.assertNotNull(contextFactory.getClientContext()); Assert.assertTrue(contextFactory.getClientContext().isPresent()); Assert.assertTrue(contextFactory.getClientContext().get().isClient()); }
public Optional<SslContext> getClientContext() { if (Objects.isNull(this.clientSslContext)) { return Optional.empty(); } return Optional.of(this.clientSslContext); }
SslContextFactory { public Optional<SslContext> getClientContext() { if (Objects.isNull(this.clientSslContext)) { return Optional.empty(); } return Optional.of(this.clientSslContext); } }
SslContextFactory { public Optional<SslContext> getClientContext() { if (Objects.isNull(this.clientSslContext)) { return Optional.empty(); } return Optional.of(this.clientSslContext); } SslContextFactory(final Tls tlsConfig); }
SslContextFactory { public Optional<SslContext> getClientContext() { if (Objects.isNull(this.clientSslContext)) { return Optional.empty(); } return Optional.of(this.clientSslContext); } SslContextFactory(final Tls tlsConfig); static InputStream asInputStream(final String filename, final PathType pathType); Optional<SslContext> getClientContext(); Optional<SslContext> getServerContext(); }
SslContextFactory { public Optional<SslContext> getClientContext() { if (Objects.isNull(this.clientSslContext)) { return Optional.empty(); } return Optional.of(this.clientSslContext); } SslContextFactory(final Tls tlsConfig); static InputStream asInputStream(final String filename, final PathType pathType); Optional<SslContext> getClientContext(); Optional<SslContext> getServerContext();  }