Class: Net::IMAP::LoginAuthenticator
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/net/imap.rb |
Overview
Authenticator for the “LOGIN” authentication type. See #authenticate().
Constant Summary
-
STATE_PASSWORD =
# File 'lib/net/imap.rb', line 3441:PASSWORD
-
STATE_USER =
# File 'lib/net/imap.rb', line 3440:USER
Class Method Summary
- .new(user, password) ⇒ LoginAuthenticator constructor private
Instance Method Summary
Constructor Details
.new(user, password) ⇒ LoginAuthenticator
(private)
# File 'lib/net/imap.rb', line 3443
def initialize(user, password) @user = user @password = password @state = STATE_USER end
Instance Method Details
#process(data)
[ GitHub ]# File 'lib/net/imap.rb', line 3428
def process(data) case @state when STATE_USER @state = STATE_PASSWORD return @user when STATE_PASSWORD return @password end end