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 2, 2023
1 parent ae754e4 commit 4af88b3
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 4af88b3

Please sign in to comment.