Skip to content

Commit

Permalink
✨ Add SASL::Authenticators#mechanism?
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Oct 6, 2023
1 parent 25bc8e3 commit 55b1051
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/net/imap/sasl/authenticators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 55b1051

Please sign in to comment.