[ Version ( since = "3.4" ) ]
public async AuthenticationResult authenticate (string? mechanism, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously attempts to authenticate this using mechanism
and, if necessary,
this's password property.
The function makes only ONE attempt at authentication and does not loop.
Generally this function should only be called from a Session subclass in order to implement its own authentication loop.
When the operation is finished, callback
will be called. You can then call authenticate.end to
get the result of the operation.
this |
a Service |
mechanism |
a SASL mechanism name, or null |
io_priority |
the I/O priority of the request |
cancellable |
optional Cancellable object, or null |
callback |
a TaskReadyCallback to call when the request is satisfied |
user_data |
data to pass to the callback function |