Class Net::IMAP::LoginAuthenticator
In: lib/net/imap.rb
Parent: Object

Authenticator for the "LOGIN" authentication type. See authenticate().

Methods

new   process  

Constants

STATE_USER = :USER
STATE_PASSWORD = :PASSWORD

Public Class methods

[Source]

      # File lib/net/imap.rb, line 3127
3127:       def initialize(user, password)
3128:         @user = user
3129:         @password = password
3130:         @state = STATE_USER
3131:       end

Public Instance methods

[Source]

      # File lib/net/imap.rb, line 3112
3112:       def process(data)
3113:         case @state
3114:         when STATE_USER
3115:           @state = STATE_PASSWORD
3116:           return @user
3117:         when STATE_PASSWORD
3118:           return @password
3119:         end
3120:       end

[Validate]