get_retains_authorization


Description:

public bool get_retains_authorization ()

Gets whether authorization is retained if obtained via authentication.

This can only be the case if this indicates that the subject can obtain authorization after challenge (cf. get_is_challenge), e.g. when the subject is not already authorized (cf. get_is_authorized).

If the subject is already authorized, use get_temporary_authorization_id to check if the authorization is temporary.

This method simply reads the value of the key/value pair in details with the key <literal> polkit.retains_authorization_after_challenge</literal>.

Parameters:

this

A AuthorizationResult.

Returns:

true if the authorization is or will be temporary.