Package io.etcd.jetcd.auth
Class AuthInterceptor
- java.lang.Object
-
- io.etcd.jetcd.auth.AuthInterceptor
-
- All Implemented Interfaces:
io.grpc.ClientInterceptor
public class AuthInterceptor extends java.lang.Object implements io.grpc.ClientInterceptorAuthTokenInterceptor fills header with Auth token of any rpc calls and refreshes token if the rpc results an invalid Auth token error.
-
-
Constructor Summary
Constructors Constructor Description AuthInterceptor(ClientBuilder builder)
-
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> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)voidrefresh()
-
-
-
Constructor Detail
-
AuthInterceptor
public AuthInterceptor(ClientBuilder builder)
-
-