/** * Create a configured SSL context from an outside SSL context. * * @param original the original SSL context * @param sslConfigurator the SSL configurator * @param wrap should the resulting SSLEngine, SSLSocket, and SSLServerSocket instances be wrapped using the configurator. * @return the configured SSL context */ public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator, final boolean wrap) { return new DelegatingSSLContext(new ConfiguredSSLContextSpi(original, sslConfigurator, wrap)); }
protected SSLEngine engineCreateSSLEngine() { final SSLEngine sslEngine = super.engineCreateSSLEngine(); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
protected SSLEngine engineCreateSSLEngine(final String host, final int port) { final SSLEngine sslEngine = super.engineCreateSSLEngine(host, port); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, useCipherSuitesOrder) : new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, wantClientAuth || canAuthPeers, needClientAuth, useCipherSuitesOrder); final ConfiguredSSLContextSpi contextSpi = new ConfiguredSSLContextSpi(sslContext, sslConfigurator, wrap); return new DelegatingSSLContext(contextSpi); });
protected SSLParameters engineGetSupportedSSLParameters() { final SSLContext delegate = getDelegate(); return sslConfigurator.getSupportedSSLParameters(delegate, delegate.getSupportedSSLParameters()); } }
/** * Create a configured SSL context from an outside SSL context. * * @param original the original SSL context * @param sslConfigurator the SSL configurator * @param wrap should the resulting SSLEngine, SSLSocket, and SSLServerSocket instances be wrapped using the configurator. * @return the configured SSL context */ public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator, final boolean wrap) { return new DelegatingSSLContext(new ConfiguredSSLContextSpi(original, sslConfigurator, wrap)); }
protected SSLParameters engineGetDefaultSSLParameters() { final SSLContext delegate = getDelegate(); return sslConfigurator.getDefaultSSLParameters(delegate, delegate.getDefaultSSLParameters()); }
/** * Create a configured SSL context from an outside SSL context. * * @param original the original SSL context * @param sslConfigurator the SSL configurator * @param wrap should the resulting SSLEngine, SSLSocket, and SSLServerSocket instances be wrapped using the configurator. * @return the configured SSL context */ public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator, final boolean wrap) { return new DelegatingSSLContext(new ConfiguredSSLContextSpi(original, sslConfigurator, wrap)); }
protected SSLSocketFactory engineGetSocketFactory() { return new ConfiguredSSLSocketFactory(super.engineGetSocketFactory(), getDelegate(), sslConfigurator, wrap); }
/** * Create a configured SSL context from an outside SSL context. * * @param original the original SSL context * @param sslConfigurator the SSL configurator * @param wrap should the resulting SSLEngine, SSLSocket, and SSLServerSocket instances be wrapped using the configurator. * @return the configured SSL context */ public static SSLContext createConfiguredSslContext(SSLContext original, final SSLConfigurator sslConfigurator, final boolean wrap) { return new DelegatingSSLContext(new ConfiguredSSLContextSpi(original, sslConfigurator, wrap)); }
protected SSLServerSocketFactory engineGetServerSocketFactory() { return new ConfiguredSSLServerSocketFactory(super.engineGetServerSocketFactory(), getDelegate(), sslConfigurator, wrap); }
new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, useCipherSuitesOrder) : new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, wantClientAuth || canAuthPeers, needClientAuth, useCipherSuitesOrder); final ConfiguredSSLContextSpi contextSpi = new ConfiguredSSLContextSpi(sslContext, sslConfigurator, wrap); return new DelegatingSSLContext(contextSpi); });
protected SSLEngine engineCreateSSLEngine(final String host, final int port) { final SSLEngine sslEngine = super.engineCreateSSLEngine(host, port); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, useCipherSuitesOrder) : new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, wantClientAuth || canAuthPeers, needClientAuth, useCipherSuitesOrder); final ConfiguredSSLContextSpi contextSpi = new ConfiguredSSLContextSpi(sslContext, sslConfigurator, wrap); return new DelegatingSSLContext(contextSpi); });
protected SSLEngine engineCreateSSLEngine(final String host, final int port) { final SSLEngine sslEngine = super.engineCreateSSLEngine(host, port); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, useCipherSuitesOrder) : new SSLConfiguratorImpl(protocolSelector, cipherSuiteSelector, wantClientAuth || canAuthPeers, needClientAuth, useCipherSuitesOrder); final ConfiguredSSLContextSpi contextSpi = new ConfiguredSSLContextSpi(sslContext, sslConfigurator, wrap); return new DelegatingSSLContext(contextSpi); });
protected SSLEngine engineCreateSSLEngine(final String host, final int port) { final SSLEngine sslEngine = super.engineCreateSSLEngine(host, port); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
protected SSLEngine engineCreateSSLEngine() { final SSLEngine sslEngine = super.engineCreateSSLEngine(); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
protected SSLEngine engineCreateSSLEngine() { final SSLEngine sslEngine = super.engineCreateSSLEngine(); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }
protected SSLEngine engineCreateSSLEngine() { final SSLEngine sslEngine = super.engineCreateSSLEngine(); final SSLConfigurator sslConfigurator = this.sslConfigurator; sslConfigurator.configure(getDelegate(), sslEngine); return wrap ? new ConfiguredSSLEngine(sslEngine, getDelegate(), sslConfigurator) : sslEngine; }