Net::IMAP::CramMD5Authenticator (Class)

In: net/imap.rb
Parent: Object

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

Methods

new   process  

Public Class methods

[Source]

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

Public Instance methods

[Source]

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

[Validate]