In Files

  • net-imap-0.2.3/lib/net/imap/authenticators/plain.rb

Parent

Methods

Net::IMAP::PlainAuthenticator

Authenticator for the “PLAIN” SASL mechanism, specified in RFC4616. See Net::IMAP#authenticate.

PLAIN authentication sends the password in cleartext. RFC3501 encourages servers to disable cleartext authentication until after TLS has been negotiated. RFC8314 recommends TLS version 1.2 or greater be used for all traffic, and deprecate cleartext access ASAP. PLAIN can be secured by TLS encryption.

Public Instance Methods

process(data) click to toggle source
 
               # File net-imap-0.2.3/lib/net/imap/authenticators/plain.rb, line 13
def process(data)
  return "#@authzid\0#@username\0#@password"
end
            
There is an updated format of the API docs for this version here.