module Net::IMAP::SASL::ProtocolAdapters::Generic
Public Instance Methods
Source
# File lib/net/imap/sasl/protocol_adapters.rb, line 73 def cancel_response; "*" end
Returns the message used by the client to abort an authentication exchange.
The generic implementation returns "*"
.
Source
# File lib/net/imap/sasl/protocol_adapters.rb, line 44 def command_name; "AUTHENTICATE" end
The name of the protocol command used to initiate a SASL authentication exchange.
The generic implementation returns "AUTHENTICATE"
.
Source
# File lib/net/imap/sasl/protocol_adapters.rb, line 67 def decode(string) string.unpack1("m0") end
Decodes a server challenge string.
The generic implementation returns the Base64 decoding of string
.
Source
# File lib/net/imap/sasl/protocol_adapters.rb, line 62 def encode(string) [string].pack("m0") end
Encodes a client response string.
The generic implementation returns the Base64 encoding of string
.
Source
# File lib/net/imap/sasl/protocol_adapters.rb, line 57 def encode_ir(string) string.empty? ? "=" : encode(string) end
Encodes an initial response string.
The generic implementation returns the result of encode
, or returns "="
when string
is empty.
Source
# File lib/net/imap/sasl/protocol_adapters.rb, line 51 def service; "host" end
A service name from the GSSAPI/Kerberos/SASL Service Names registry.
The generic implementation returns "host"
, which is the generic GSSAPI host-based service name.