class Net::IMAP::CramMD5Authenticator

Authenticator for the “CRAM-MD5” authentication type. See authenticate().

Public Class Methods

new(user, password) click to toggle source
# File net/imap.rb, line 3556
def initialize(user, password)
  @user = user
  @password = password
end

Public Instance Methods

process(challenge) click to toggle source
# File net/imap.rb, line 3549
def process(challenge)
  digest = hmac_md5(challenge, @password)
  return @user + " " + digest
end