module Groat::SMTPD::Extensions::Authentication::ClassMethods

Public Instance Methods

auth_mechanism(name, method, condition = nil) click to toggle source
# File lib/groat/smtpd/extensions/authentication.rb, line 28
def auth_mechanism(name, method, condition = nil)
  sym = name.to_s.upcase.intern
  auth_mechanisms[sym] = {} unless auth_mechanisms.has_key? sym
  auth_mechanisms[sym] = {:method => method, :condition => condition}
end