Interface AuthenticatingServerInterceptor
- All Superinterfaces:
ServerInterceptor
- All Known Implementing Classes:
DefaultAuthenticatingServerInterceptor
Marker-Interface: A server interceptor that used to authenticate the client request.
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Context.Key<Authentication>Deprecated.static final Context.Key<SecurityContext>The context key that can be used to retrieve the associatedAuthentication. -
Method Summary
Methods inherited from interface io.grpc.ServerInterceptor
interceptCall
-
Field Details
-
SECURITY_CONTEXT_KEY
The context key that can be used to retrieve the associatedAuthentication. -
AUTHENTICATION_CONTEXT_KEY
Deprecated.UseSECURITY_CONTEXT_KEYinstead.The context key that can be used to retrieve the originally associatedAuthentication.
-
SECURITY_CONTEXT_KEYinstead.