class Net::IMAP::SASL::AnonymousAuthenticator
Net::IMAP#authenticate.<br>RFC-4505. See
Authenticator for the “ANONYMOUS
” SASL mechanism, as specified by
def done?; @done end
The authentication should not succeed unless this returns true, but it
Returns true when the initial client response was sent.
def done?; @done end
def initial_response?; true end
initial_response? -> true
:call-seq:
def initial_response?; true end
def initialize(anon_msg = nil, anonymous_message: nil, **)
* _optional_ #anonymous_message — a message to send to the server.
==== Parameters
method.
this, see Net::IMAP#authenticate or your client's authentication
specified in RFC-4505[https://www.rfc-editor.org/rfc/rfc4505]. To use
Creates an Authenticator for the "+ANONYMOUS+" SASL mechanism, as
new(anonymous_message: "", **) -> authenticator
new(anonymous_message = "", **) -> authenticator
:call-seq:
def initialize(anon_msg = nil, anonymous_message: nil, **) message = (anonymous_message || anon_msg || "").to_str @anonymous_message = StringPrep::Trace.stringprep_trace message if (size = @anonymous_message&.length)&.> 255 raise ArgumentError, "anonymous_message is too long. (%d codepoints)" % [size] end @done = false end
def process(_server_challenge_string)
def process(_server_challenge_string) anonymous_message ensure @done = true end