aboutsummaryrefslogtreecommitdiff
path: root/SECURITY.md
diff options
context:
space:
mode:
authorCarl Mastrangelo <notcarl@google.com>2017-05-26 14:27:53 -0700
committerGitHub <noreply@github.com>2017-05-26 14:27:53 -0700
commitecbacf0856ea884f6b386a30e3ac2d89176eaf1e (patch)
treed8ec4080ab67b92c81caccbfcac0973deae4cb60 /SECURITY.md
parentcefcd393969cd39abb2467490789d56b86749ada (diff)
downloadgrpc-grpc-java-ecbacf0856ea884f6b386a30e3ac2d89176eaf1e.tar.gz
all: fix bad ref to ServerCall
Diffstat (limited to 'SECURITY.md')
-rw-r--r--SECURITY.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/SECURITY.md b/SECURITY.md
index 1ab534e20..8feefad6e 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -266,7 +266,7 @@ Server server = NettyServerBuilder.forPort(8443)
.build());
```
-Negotiated client certificates are available in the SSLSession, which is found in the SSL_SESSION_KEY attribute of <a href="https://github.com/grpc/grpc-java/blob/master/core/src/main/java/io/grpc/ServerCall.java">ServerCall</a>. A server interceptor can provide details in the current Context.
+Negotiated client certificates are available in the SSLSession, which is found in the `TRANSPORT_ATTR_SSL_SESSION` attribute of <a href="https://github.com/grpc/grpc-java/blob/master/core/src/main/java/io/grpc/Grpc.java">Grpc</a>. A server interceptor can provide details in the current Context.
```java
public final static Context.Key<SSLSession> SSL_SESSION_CONTEXT = Context.key("SSLSession");
@@ -274,7 +274,7 @@ public final static Context.Key<SSLSession> SSL_SESSION_CONTEXT = Context.key("S
@Override
public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<RespT> call,
Metadata headers, ServerCallHandler<ReqT, RespT> next) {
- SSLSession sslSession = call.attributes().get(ServerCall.SSL_SESSION_KEY);
+ SSLSession sslSession = call.attributes().get(Grpc.TRANSPORT_ATTR_SSL_SESSION);
if (sslSession == null) {
return next.startCall(call, headers)
}