Example #1
0
        private void InternalSetUpForClient(bool addCertificates, string lookupUrl)
        {
            IDictionary <string, string> authParams = new Dictionary <string, string>();

            authParams["tlsCertFile"] = TlsClientCertFilePath;
            authParams["tlsKeyFile"]  = TlsClientKeyFilePath;
            _common.GetPulsarSystem(addCertificates? AuthenticationFactory.Create(typeof(AuthenticationTls).FullName, authParams): new AuthenticationDisabled(), 1000, enableTls: true, brokerService: lookupUrl);
        }
Example #2
0
 public PulsarClientConfigBuilder Authentication(string authPluginClassName, IDictionary <string, string> authParams)
 {
     _conf.Authentication = AuthenticationFactory.Create(authPluginClassName, authParams);
     return(this);
 }