class Net::IMAP::NumValidator::ResponseParser::LoginAuthenticator

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

Constants

STATE_PASSWORD
STATE_USER

Public Class Methods

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

Public Instance Methods

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