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 3126
3126:       def initialize(user, password)
3127:         @user = user
3128:         @password = password
3129:         @state = STATE_USER
3130:       end

Public Instance methods

[Source]

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

[Validate]