register_authentication_agent_sync


Description:

public bool register_authentication_agent_sync (Subject subject, string locale, string object_path, 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 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.

cancellable

A Cancellable or null.

Returns:

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