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
Deprecated.
Use
SECURITY_CONTEXT_KEY instead. |
static Context.Key<SecurityContext> |
SECURITY_CONTEXT_KEY
The context key that can be used to retrieve the associated
Authentication. |
interceptCallstatic final Context.Key<SecurityContext> SECURITY_CONTEXT_KEY
Authentication.@Deprecated static final Context.Key<Authentication> AUTHENTICATION_CONTEXT_KEY
SECURITY_CONTEXT_KEY instead.Authentication.