On this page
class Net::IMAP::LoginAuthenticator
Authenticator for the “LOGIN” authentication type. See authenticate().
Constants
- STATE_PASSWORD
- STATE_USER
Public Class Methods
# File lib/net/imap.rb, line 3442
def initialize(user, password)
@user = user
@password = password
@state = STATE_USER
end
Public Instance Methods
# File lib/net/imap.rb, line 3427
def process(data)
case @state
when STATE_USER
@state = STATE_PASSWORD
return @user
when STATE_PASSWORD
return @password
end
end
Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.