From 4af88b355a87a78ca0c7aa9c2cd591daa412ea62 Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 29 Sep 2023 09:26:09 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20`SASL::Authenticators#mechani?= =?UTF-8?q?sm=3F`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/net/imap/sasl/authenticators.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/net/imap/sasl/authenticators.rb b/lib/net/imap/sasl/authenticators.rb index e4c462501..09d271c38 100644 --- a/lib/net/imap/sasl/authenticators.rb +++ b/lib/net/imap/sasl/authenticators.rb @@ -83,6 +83,11 @@ def remove_authenticator(name) @authenticators.delete(key) end + def mechanism?(name) + key = name.upcase.to_sym + @authenticators.key?(key) + end + # :call-seq: # authenticator(mechanism, ...) -> auth_session #