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

In Files

  • net/imap.rb

Parent

Methods

Net::IMAP::LoginAuthenticator

Authenticator for the “LOGIN” authentication type. See authenticate().

Public Class Methods

new(user, password) click to toggle source
 
               # File net/imap.rb, line 3439
def initialize(user, password)
  @user = user
  @password = password
  @state = STATE_USER
end
            

Public Instance Methods

process(data) click to toggle source
 
               # File net/imap.rb, line 3424
def process(data)
  case @state
  when STATE_USER
    @state = STATE_PASSWORD
    return @user
  when STATE_PASSWORD
    return @password
  end
end