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 3146
3146:       def initialize(user, password)
3147:         @user = user
3148:         @password = password
3149:         @state = STATE_USER
3150:       end

Public Instance methods

[Source]

      # File lib/net/imap.rb, line 3131
3131:       def process(data)
3132:         case @state
3133:         when STATE_USER
3134:           @state = STATE_PASSWORD
3135:           return @user
3136:         when STATE_PASSWORD
3137:           return @password
3138:         end
3139:       end

[Validate]