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

Public Instance methods

[Source]

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

[Validate]