register_authentication_agent_with_options_sync


Description:

public bool register_authentication_agent_with_options_sync (Subject subject, string locale, string object_path, Variant? options, Cancellable? cancellable = null) throws Error

Registers an authentication agent.

Note that this should be called by the same effective UID which will be the real UID using the PolkitAgentSession API or otherwise calling authentication_agent_response.

The calling thread is blocked until a reply is received. See register_authentication_agent_with_options for the asynchronous version.

Parameters:

this

A Authority.

subject

The subject the authentication agent is for, typically a UnixSession object.

locale

The locale of the authentication agent.

object_path

The object path for the authentication agent.

options

A Variant with options or null.

cancellable

A Cancellable or null.

Returns:

true if the authentication agent was successfully registered, false if throws is set.