Class: Net::IMAP::SASLAdapter

Inherits:
Net::IMAP::SASL::ClientAdapter show all
Includes:
Net::IMAP::SASL::ProtocolAdapters::IMAP
Defined in:
lib/net/imap/sasl_adapter.rb

Overview

Experimental

Constant Summary collapse

RESPONSE_ERRORS =
[NoResponseError, BadResponseError, ByeResponseError]
.freeze

Instance Attribute Summary

Attributes inherited from Net::IMAP::SASL::ClientAdapter

#client, #command_proc

Instance Method Summary collapse

Methods included from Net::IMAP::SASL::ProtocolAdapters::IMAP

#service

Methods included from Net::IMAP::SASL::ProtocolAdapters::Generic

#cancel_response, #command_name, #decode, #encode, #encode_ir, #host, #port, #service

Methods inherited from Net::IMAP::SASL::ClientAdapter

#authenticate, #initialize, #run_command

Constructor Details

This class inherits a constructor from Net::IMAP::SASL::ClientAdapter

Instance Method Details

#auth_capable?(mechanism) ⇒ Boolean

Returns:

  • (Boolean)


15
# File 'lib/net/imap/sasl_adapter.rb', line 15

def auth_capable?(mechanism); client.auth_capable?(mechanism) end

#drop_connectionObject



16
# File 'lib/net/imap/sasl_adapter.rb', line 16

def drop_connection;          client.logout!                  end

#drop_connection!Object



17
# File 'lib/net/imap/sasl_adapter.rb', line 17

def drop_connection!;         client.disconnect               end

#response_errorsObject



13
# File 'lib/net/imap/sasl_adapter.rb', line 13

def response_errors;          RESPONSE_ERRORS                 end

#sasl_ir_capable?Boolean

Returns:

  • (Boolean)


14
# File 'lib/net/imap/sasl_adapter.rb', line 14

def sasl_ir_capable?;         client.capable?("SASL-IR")      end