Class: DBus::Authentication::Mechanism Private

Inherits:
Object
  • Object
show all
Defined in:
lib/dbus/auth.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base class of authentication mechanisms

Direct Known Subclasses

Anonymous, DBusCookieSHA1, External

Instance Method Summary collapse

Instance Method Details

#call(challenge) ⇒ Array(Symbol,String)

This method is abstract.

Replies to server challenge, or sends an initial response if the challenge is ‘nil`.

Parameters:

  • challenge (String, nil)

Returns:

  • (Array(Symbol,String))

    pair [action, response], where

    • :MechContinue, response

      caller should send “DATA response” and go to :WaitingForData

    • :MechOk, response

      caller should send “DATA response” and go to :WaitingForOk

    • :MechError, message

      caller should send “ERROR message” and go to :WaitingForData



# File 'lib/dbus/auth.rb', line 23

#nameString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Uppercase mechanism name, as sent to the server

Returns:

  • (String)


34
35
36
# File 'lib/dbus/auth.rb', line 34

def name
  self.class.to_s.upcase.sub(/.*::/, "")
end