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 3518:PASSWORD
-
STATE_USER =
# File 'lib/net/imap.rb', line 3517: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 3520
def initialize(user, password) @user = user @password = password @state = STATE_USER end
Instance Method Details
#process(data)
[ GitHub ]# File 'lib/net/imap.rb', line 3505
def process(data) case @state when STATE_USER @state = STATE_PASSWORD return @user when STATE_PASSWORD return @password end end