Class Net::IMAP::CramMD5Authenticator
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 3161
      def initialize(user, password)
        @user = user
        @password = password
      end

Public Instance methods

[Source]

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

[Validate]

ruby-doc.org is a community service provided by Happy Camper Studios, a Phoenix, Arizona, Ruby application development company.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.