Ruby 2.4

Net::IMAP::PlainAuthenticator

Net::IMAP::PlainAuthenticator类

Parent:Object

“PLAIN”身份验证类型的身份验证器。请参阅authenticate()。

公共类方法

new(user, password) Show source

# File lib/net/imap.rb, line 3455 def initialize(user, password) @user = user @password = password end

公共实例方法

process(data) Show source

# File lib/net/imap.rb, line 3449 def process(data) return "\0#{@user}\0#{@password}" end