public interface AuthenticatingServerInterceptor
extends io.grpc.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.
AbstractAuthenticatingServerCallListener,
Contexts.interceptCall(Context, ServerCall, Metadata, ServerCallHandler)| Modifier and Type | Field and Description |
|---|---|
static io.grpc.Context.Key<Authentication> |
AUTHENTICATION_CONTEXT_KEY
Deprecated.
Use
SECURITY_CONTEXT_KEY instead. |
static io.grpc.Context.Key<SecurityContext> |
SECURITY_CONTEXT_KEY
The context key that can be used to retrieve the associated
Authentication. |
static final io.grpc.Context.Key<SecurityContext> SECURITY_CONTEXT_KEY
Authentication.@Deprecated static final io.grpc.Context.Key<Authentication> AUTHENTICATION_CONTEXT_KEY
SECURITY_CONTEXT_KEY instead.Authentication.