Class: Net::IMAP::LoginAuthenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/net/imap.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#process(data) ⇒ Object



3378
3379
3380
3381
3382
3383
3384
3385
3386
# File 'lib/net/imap.rb', line 3378

def process(data)
  case @state
  when STATE_USER
    @state = STATE_PASSWORD
    return @user
  when STATE_PASSWORD
    return @password
  end
end