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

Public Instance Methods

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