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 3143
3143:       def initialize(user, password)
3144:         @user = user
3145:         @password = password
3146:         @state = STATE_USER
3147:       end

Public Instance methods

[Source]

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

[Validate]