From ecbacf0856ea884f6b386a30e3ac2d89176eaf1e Mon Sep 17 00:00:00 2001 From: Carl Mastrangelo Date: Fri, 26 May 2017 14:27:53 -0700 Subject: [PATCH] all: fix bad ref to ServerCall --- SECURITY.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 1ab534e204..8feefad6e2 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 ServerCall. 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 Grpc. A server interceptor can provide details in the current Context. ```java public final static Context.Key SSL_SESSION_CONTEXT = Context.key("SSLSession"); @@ -274,7 +274,7 @@ public final static Context.Key SSL_SESSION_CONTEXT = Context.key("S @Override public ServerCall.Listener interceptCall(ServerCall call, Metadata headers, ServerCallHandler 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) }