Search in sources :

Example 6 with SslConfig

use of org.apache.dubbo.config.SslConfig in project dubbo by alibaba.

the class DubboBootstrap method getSsl.

private SslConfig getSsl() {
    SslConfig ssl = configManager.getSsl().orElseGet(() -> {
        SslConfig sslConfig = new SslConfig();
        configManager.setSsl(sslConfig);
        return sslConfig;
    });
    ssl.refresh();
    return ssl;
}
Also used : SslConfig(org.apache.dubbo.config.SslConfig)

Aggregations

SslConfig (org.apache.dubbo.config.SslConfig)6 ConfigManager (org.apache.dubbo.config.context.ConfigManager)5 SslContextBuilder (io.netty.handler.ssl.SslContextBuilder)4 IOException (java.io.IOException)4 InputStream (java.io.InputStream)4 SSLException (javax.net.ssl.SSLException)4 JdkSslContext (io.netty.handler.ssl.JdkSslContext)1 OpenSslContext (io.netty.handler.ssl.OpenSslContext)1 ReferenceCountedOpenSslContext (io.netty.handler.ssl.ReferenceCountedOpenSslContext)1 SslContext (io.netty.handler.ssl.SslContext)1 Field (java.lang.reflect.Field)1 List (java.util.List)1