MoreCallCredentials.from(Credentials) instead.@Deprecated public final class ClientAuthInterceptor extends Object implements ClientInterceptor
Uses the new and simplified Google auth library: https://github.com/google/google-auth-library-java
| Constructor and Description |
|---|
ClientAuthInterceptor(com.google.auth.Credentials credentials,
Executor executor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
interceptCall(MethodDescriptor<ReqT,RespT> method,
CallOptions callOptions,
Channel next)
Deprecated.
|
public ClientAuthInterceptor(com.google.auth.Credentials credentials,
Executor executor)
public <ReqT,RespT> ClientCall<ReqT,RespT> interceptCall(MethodDescriptor<ReqT,RespT> method, CallOptions callOptions, Channel next)
ClientInterceptorClientCall creation by the next Channel.
Many variations of interception are possible. Complex implementations may return a wrapper
around the result of next.newCall(), whereas a simpler implementation may just modify
the header metadata prior to returning the result of next.newCall().
interceptCall in interface ClientInterceptormethod - the remote method to be called.callOptions - the runtime options to be applied to this call.next - the channel which is being intercepted.null.