aboutsummaryrefslogtreecommitdiff
path: root/SECURITY.md
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2016-03-14 11:46:42 -0700
committerEric Anderson <ejona@google.com>2016-03-14 11:47:30 -0700
commit569dcb502e9fa83243c921357c90f9fe287c7946 (patch)
treeab5ca7ec796ffb90b938ccc568c888d2f9973040 /SECURITY.md
parentcf86d81ef75923708cc2fe46eca8b36fcd4a2171 (diff)
downloadgrpc-grpc-java-569dcb502e9fa83243c921357c90f9fe287c7946.tar.gz
Remove last vestiges of ChannelImpl/ServerImpl from security doc
Diffstat (limited to 'SECURITY.md')
-rw-r--r--SECURITY.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/SECURITY.md b/SECURITY.md
index 46de8f4f8..35cb7e265 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -254,7 +254,7 @@ specified in PEM format. The standard TLS port is 443, but we use 8443 below to
avoid needing extra permissions from the OS.
```java
-ServerImpl server = ServerBuilder.forPort(8443)
+Server server = ServerBuilder.forPort(8443)
// Enable TLS
.useTransportSecurity(certChainFile, privateKeyFile)
.addService(TestServiceGrpc.bindService(serviceImplementation))
@@ -279,8 +279,7 @@ The following code snippet shows how you can call the Google Cloud PubSub API us
```java
// Create a channel to the test service.
-ChannelImpl channelImpl = NettyChannelBuilder.forAddress("pubsub.googleapis.com")
- .negotiationType(NegotiationType.TLS)
+ManagedChannel channel = ManagedChannelBuilder.forTarget("pubsub.googleapis.com")
.build();
// Get the default credentials from the environment
GoogleCredentials creds = GoogleCredentials.getApplicationDefault();