Ejemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public io.netty.handler.ssl.SslContext nettyClientContext() throws javax.net.ssl.SSLException
        public virtual SslContext NettyClientContext()
        {
            return(SslContextBuilder.forClient().sslProvider(_sslProvider).keyManager(_privateKey, _keyCertChain).protocols(_tlsVersions).ciphers(_ciphers).trustManager(_trustManagerFactory).build());
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public io.netty.handler.ssl.SslContext nettyServerContext() throws javax.net.ssl.SSLException
        public virtual SslContext NettyServerContext()
        {
            return(SslContextBuilder.forServer(_privateKey, _keyCertChain).sslProvider(_sslProvider).clientAuth(ForNetty(_clientAuth)).protocols(_tlsVersions).ciphers(_ciphers).trustManager(_trustManagerFactory).build());
        }