Package io.token.rpc

Class ClientAuthenticatorFactory

  • All Implemented Interfaces:
    io.token.rpc.interceptor.InterceptorFactory

    public final class ClientAuthenticatorFactory
    extends java.lang.Object
    implements io.token.rpc.interceptor.InterceptorFactory
    Responsible for creation of ClientAuthenticator instances which are created per RPC method call.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <ReqT,​ResT>
      io.token.rpc.interceptor.SimpleInterceptor<ReqT,​ResT>
      create​(io.grpc.MethodDescriptor<ReqT,​ResT> ignore)  
      • Methods inherited from class java.lang.Object

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

      • ClientAuthenticatorFactory

        public ClientAuthenticatorFactory​(java.lang.String memberId,
                                          CryptoEngine crypto,
                                          AuthenticationContext authenticationContext)
        Creates an instance.
        Parameters:
        memberId - Token member ID
        crypto - crypto engine
        authenticationContext - authentication context
    • Method Detail

      • create

        public <ReqT,​ResT> io.token.rpc.interceptor.SimpleInterceptor<ReqT,​ResT> create​(io.grpc.MethodDescriptor<ReqT,​ResT> ignore)
        Specified by:
        create in interface io.token.rpc.interceptor.InterceptorFactory