Package alluxio.security.authentication
Class AuthenticatedUserInjector
- java.lang.Object
-
- alluxio.security.authentication.AuthenticatedUserInjector
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor
@ThreadSafe public final class AuthenticatedUserInjector extends java.lang.Object implements io.grpc.ServerInterceptor
Server side interceptor for setting authenticated user inAuthenticatedClientUser
. This interceptor requiresChannelIdInjector
to have injected the channel id from which the particular RPC is being made.
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedUserInjector(AuthenticationServer authenticationServer)
CreatesAuthenticationServer
with given authentication server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
-
-
-
Constructor Detail
-
AuthenticatedUserInjector
public AuthenticatedUserInjector(AuthenticationServer authenticationServer)
CreatesAuthenticationServer
with given authentication server.- Parameters:
authenticationServer
- the authentication server
-
-