Net::IMAP::LoginAuthenticator
Net::IMAP::LoginAuthenticator类
Parent:Object
“LOGIN”为身份验证类型的身份验证器。请参阅authenticate()。
常量
STATE_PASSWORD STATE_USER
公共类方法
new(user, password) Show source
# File lib/net/imap.rb, line 3438
def initialize(user, password)
@user = user
@password = password
@state = STATE_USER
end
公共实例方法
process(data) Show source
# File lib/net/imap.rb, line 3423
def process(data)
case @state
when STATE_USER
@state = STATE_PASSWORD
return @user
when STATE_PASSWORD
return @password
end
end