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 3257
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 3242
def process(data)
  case @state
  when STATE_USER
    @state = STATE_PASSWORD
    return @user
  when STATE_PASSWORD
    return @password
  end
end