diff options
author | Xudong Ma <simonma@google.com> | 2015-08-20 10:28:16 -0700 |
---|---|---|
committer | Xudong Ma <simonma@google.com> | 2015-08-24 09:44:46 -0700 |
commit | 37b1a8c6d9a9dd897d91b945d60df4ab57802a2c (patch) | |
tree | 38903d8a33cc5ac6de6e5ac4e752e1914e669dd8 /SECURITY.md | |
parent | 0b57f56bf001a409d471c77f37c43b55cf5a80fc (diff) | |
download | grpc-grpc-java-37b1a8c6d9a9dd897d91b945d60df4ab57802a2c.tar.gz |
Update the code example to use our own API
Diffstat (limited to 'SECURITY.md')
-rw-r--r-- | SECURITY.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SECURITY.md b/SECURITY.md index 2ee7328f6..d7ba11fe3 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -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) |