Class: Net::IMAP::PlainAuthenticator
- Inherits:
-
Object
- Object
- Net::IMAP::PlainAuthenticator
- Defined in:
- lib/net/imap/authenticators/plain.rb
Overview
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.
Constant Summary collapse
- NULL =
:nodoc:
-"\0".b
Instance Method Summary collapse
Instance Method Details
#process(data) ⇒ Object
14 15 16 |
# File 'lib/net/imap/authenticators/plain.rb', line 14 def process(data) return "#@authzid\0#@username\0#@password" end |