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

Methods
N
P
Constants
STATE_USER = :USER
 
STATE_PASSWORD = :PASSWORD
 
Class Public methods
new(user, password)
# File lib/net/imap.rb, line 3179
def initialize(user, password)
  @user = user
  @password = password
  @state = STATE_USER
end
Instance Public methods
process(data)
# File lib/net/imap.rb, line 3164
def process(data)
  case @state
  when STATE_USER
    @state = STATE_PASSWORD
    return @user
  when STATE_PASSWORD
    return @password
  end
end