Class: Net::IMAP::LoginAuthenticator (Ruby 2.3.4)

Net::IMAP::LoginAuthenticator

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

Public Class Methods

new(user, password)
 
               # File net/imap.rb, line 3441
def initialize(user, password)
  @user = user
  @password = password
  @state = STATE_USER
end
            

Public Instance Methods

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