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 3151
3151:       def initialize(user, password)
3152:         @user = user
3153:         @password = password
3154:         @state = STATE_USER
3155:       end

Public Instance methods

[Source]

      # File lib/net/imap.rb, line 3136
3136:       def process(data)
3137:         case @state
3138:         when STATE_USER
3139:           @state = STATE_PASSWORD
3140:           return @user
3141:         when STATE_PASSWORD
3142:           return @password
3143:         end
3144:       end

[Validate]