Remove last vestiges of ChannelImpl/ServerImpl from security doc

This commit is contained in:
Eric Anderson 2016-03-14 11:46:42 -07:00
parent cf86d81ef7
commit 569dcb502e
1 changed files with 2 additions and 3 deletions

View File

@ -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. avoid needing extra permissions from the OS.
```java ```java
ServerImpl server = ServerBuilder.forPort(8443) Server server = ServerBuilder.forPort(8443)
// Enable TLS // Enable TLS
.useTransportSecurity(certChainFile, privateKeyFile) .useTransportSecurity(certChainFile, privateKeyFile)
.addService(TestServiceGrpc.bindService(serviceImplementation)) .addService(TestServiceGrpc.bindService(serviceImplementation))
@ -279,8 +279,7 @@ The following code snippet shows how you can call the Google Cloud PubSub API us
```java ```java
// Create a channel to the test service. // Create a channel to the test service.
ChannelImpl channelImpl = NettyChannelBuilder.forAddress("pubsub.googleapis.com") ManagedChannel channel = ManagedChannelBuilder.forTarget("pubsub.googleapis.com")
.negotiationType(NegotiationType.TLS)
.build(); .build();
// Get the default credentials from the environment // Get the default credentials from the environment
GoogleCredentials creds = GoogleCredentials.getApplicationDefault(); GoogleCredentials creds = GoogleCredentials.getApplicationDefault();