Class AuthClientInterceptor

  • All Implemented Interfaces:
    io.grpc.ClientInterceptor

    public class AuthClientInterceptor
    extends java.lang.Object
    implements io.grpc.ClientInterceptor
    Adds Authorization header with configured authentication scheme token supplied by tokeSupplier to each intercepted client call
    • Method Detail

      • interceptCall

        public <ReqT,​RespT> io.grpc.ClientCall<ReqT,​RespT> interceptCall​(io.grpc.MethodDescriptor<ReqT,​RespT> methodDescriptor,
                                                                                     io.grpc.CallOptions callOptions,
                                                                                     io.grpc.Channel next)
        Specified by:
        interceptCall in interface io.grpc.ClientInterceptor