authenticate


Description:

[ Version ( since = "3.4" ) ]
public async bool authenticate (Service service, string? mechanism, int io_priority, Cancellable? cancellable = null) throws Error

Asynchronously authenticates service, which may involve repeated calls to authenticate or authenticate_sync.

A Session subclass is largely responsible for implementing this, and should handle things like user prompts and secure password storage. These issues are out-of-scope for Camel.

When the operation is finished, callback will be called. You can then call authenticate.end to get the result of the operation.

Parameters:

this

a Session

service

a Service

mechanism

a SASL mechanism name, or null

io_priority

the I/O priority for 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