123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::PlainAuthenticator

Relationships & Source Files
Inherits: Object
Defined in: lib/net/imap.rb

Overview

Authenticator for the “PLAIN” authentication type. See #authenticate().

Class Method Summary

Instance Method Summary

Constructor Details

.new(user, password) ⇒ PlainAuthenticator (private)

[ GitHub ]

  
# File 'lib/net/imap.rb', line 3460

def initialize(user, password)
  @user = user
  @password = password
end

Instance Method Details

#process(data)

[ GitHub ]

  
# File 'lib/net/imap.rb', line 3454

def process(data)
  return "\0#{@user}\0#{@password}"
end