Class: DBus::Client
- Inherits:
-
Object
- Object
- DBus::Client
- Defined in:
- lib/dbus/auth.rb
Overview
Authentication client class.
Class tha performs the actional authentication.
Instance Method Summary collapse
-
#authenticate ⇒ Object
Start the authentication process.
-
#initialize(socket) ⇒ Client
constructor
Create a new authentication client.
Constructor Details
Instance Method Details
#authenticate ⇒ Object
Start the authentication process.
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/dbus/auth.rb', line 51 def authenticate @socket.write(0.chr) next_authenticator @state = :Starting while @state != :Authenticated r = next_state return r if not r end true end |