= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
On This Page
package obus
-
obus
-
obus.hal
-
obus.network_manager
-
obus.notification
-
obus.ppx
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Client-side authentication
Mechanisms
class virtual mechanism_handler : object ... end
type mechanism = {
mech_name : string;
(*Name of the mechanism
*)mech_exec : unit -> mechanism_handler;
(*Mechanism creator
*)
}
An client-side authentication mechanism
val mech_name : mechanism -> string
mech_name
projection
val mech_exec : mechanism -> unit -> mechanism_handler
mech_exec
projection
Predefined mechanisms
val mech_external : mechanism
val mech_anonymous : mechanism
val mech_dbus_cookie_sha1 : mechanism
val default_mechanisms : mechanism list
Authentication
val authenticate :
?capabilities:capability list ->
?mechanisms:mechanism list ->
stream:stream ->
unit ->
(OBus_address.guid * capability list) Lwt.t
Launch client-side authentication on the given stream. On success it returns the unique identifier of the server address and capabilities that were successfully negotiated with the server.
Note: authenticate
does not sends the initial null byte. You have to handle it before calling authenticate
.
- parameter capabilities
defaults to
- parameter mechanisms
defualts to
default_mechanisms
On This Page