Module: Net::IMAP::SASL::ProtocolAdapters::Generic

Included in:
ClientAdapter, IMAP, POP, SMTP
Defined in:
lib/net/imap/sasl/protocol_adapters.rb

Overview

This API is experimental, and may change.

Instance Method Summary collapse

Instance Method Details

#cancel_responseObject



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

def cancel_response;  "*" end

#command_nameObject



10
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 10

def command_name;     "AUTHENTICATE" end

#decode(string) ⇒ Object



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

def decode(string)    string.unpack1("m0") end

#encode(string) ⇒ Object



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

def encode(string)    [string].pack("m0") end

#encode_ir(string) ⇒ Object



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

def encode_ir(string) string.empty? ? "=" : encode(string) end

#hostObject



12
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 12

def host;             client.host end

#portObject



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

def port;             client.port end

#serviceObject



11
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 11

def service;          raise "Implement in subclass or module" end