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
- #cancel_response ⇒ Object
- #command_name ⇒ Object
- #decode(string) ⇒ Object
- #encode(string) ⇒ Object
- #encode_ir(string) ⇒ Object
- #host ⇒ Object
- #port ⇒ Object
- #service ⇒ Object
Instance Method Details
#cancel_response ⇒ Object
17 |
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 17 def cancel_response; "*" end |
#command_name ⇒ Object
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 |
#host ⇒ Object
12 |
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 12 def host; client.host end |
#port ⇒ Object
13 |
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 13 def port; client.port end |
#service ⇒ Object
11 |
# File 'lib/net/imap/sasl/protocol_adapters.rb', line 11 def service; raise "Implement in subclass or module" end |