public interface AuthenticatingServerInterceptor extends ServerInterceptor
Note: Implementations must be thread safe and return a thread safe ServerCall.Listener
. Do NOT store the
authentication in a thread local context (permanently). The authentication context must be cleared before returning
from interceptCall()
and all the ServerCall.Listener
methods.
Modifier and Type | Field and Description |
---|---|
static Context.Key<Authentication> |
AUTHENTICATION_CONTEXT_KEY
The context key that can be used to retrieve the associated
Authentication . |
interceptCall
static final Context.Key<Authentication> AUTHENTICATION_CONTEXT_KEY
Authentication
.