Class AuthClientInterceptor
- java.lang.Object
-
- org.lognet.springboot.grpc.security.AuthClientInterceptor
-
- All Implemented Interfaces:
io.grpc.ClientInterceptor
public class AuthClientInterceptor extends java.lang.Object implements io.grpc.ClientInterceptorAdds Authorization header with configured authentication scheme token supplied by tokeSupplier to each intercepted client call
-
-
Constructor Summary
Constructors Constructor Description AuthClientInterceptor(AuthHeader authHeader)AuthClientInterceptor(AuthHeader.AuthHeaderBuilder authHeaderBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> methodDescriptor, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
-
-
Constructor Detail
-
AuthClientInterceptor
public AuthClientInterceptor(AuthHeader authHeader)
-
AuthClientInterceptor
public AuthClientInterceptor(AuthHeader.AuthHeaderBuilder authHeaderBuilder)
-
-