Esempio n. 1
0
        public ClientAuthenticator(IClientSaslChannel channel)
        {
            if (channel == null)
            {
                throw new ArgumentNullException(nameof(channel));
            }

            mechanisms = new Dictionary<string, ISaslMechanism>();
            sync = new object();
        }        
Esempio n. 2
0
 public async Task<AuthOutcome> AuthenticateAsync(IClientSaslChannel channel)
 {
     byte[] initialResponse = GetInitialResponse();
     await channel.SendAuthRequestAsync(Name, initialResponse);
     return await channel.ReceiveOutcomeAsync();
 }
Esempio n. 3
0
 public async Task<AuthOutcome> AuthenticateAsync(IClientSaslChannel channel)
 {
     await channel.SendAuthRequestAsync(Name);
     return await channel.ReceiveOutcomeAsync();
 }