Support for the Ruby 2.4 series has ended. See here for reference.

In Files

  • net/imap.rb

Parent

Methods

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 3473
def initialize(user, password)
  @user = user
  @password = password
end
            

Public Instance Methods

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