Class: Net::IMAP::CramMD5Authenticator (Ruby 2.3.4)

Net::IMAP::CramMD5Authenticator

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

Public Class Methods

new(user, password)
 
               # File net/imap.rb, line 3475
def initialize(user, password)
  @user = user
  @password = password
end
            

Public Instance Methods

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