Package io.grpc.auth

Class ClientAuthInterceptor

  • All Implemented Interfaces:
    io.grpc.ClientInterceptor

    @Deprecated
    public final class ClientAuthInterceptor
    extends java.lang.Object
    implements io.grpc.ClientInterceptor
    Deprecated.
    Client interceptor that authenticates all calls by binding header data provided by a credential. Typically this will populate the Authorization header but other headers may also be filled out.

    Uses the new and simplified Google auth library: https://github.com/google/google-auth-library-java

    • Constructor Summary

      Constructors 
      Constructor Description
      ClientAuthInterceptor​(com.google.auth.Credentials credentials, java.util.concurrent.Executor executor)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      <ReqT,​RespT>
      io.grpc.ClientCall<ReqT,​RespT>
      interceptCall​(io.grpc.MethodDescriptor<ReqT,​RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientAuthInterceptor

        public ClientAuthInterceptor​(com.google.auth.Credentials credentials,
                                     java.util.concurrent.Executor executor)
        Deprecated.
    • Method Detail

      • interceptCall

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