Update the code example to use our own API

This commit is contained in:
Xudong Ma 2015-08-20 10:28:16 -07:00
parent 0b57f56bf0
commit 37b1a8c6d9
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ In this example the service owner provides a certificate chain and private key t
```java
// Load certificate chain and key for SSL server into a Netty SslContext
SslContext sslContext = SslContext.newServerContext(certChainFile, privateKeyFile);
SslContext sslContext = GrpcSslContexts.forServer(certChainFile, privateKeyFile);
// Create a server, bound to port 443 and exposing a service implementation
ServerImpl server = NettyServerBuilder.forPort(443)
.sslContext(sslContext)