register_impl


Description:

public bool register_impl (string? authentication_method, CredentialsPrompterImpl prompter_impl)

Registers a prompter implementation for a given authentication method.

If there is registered a prompter for the same authentication_method, then the function does nothing, otherwise it adds its own reference on the prompter_impl, and uses it for that authentication method. One prompter_impl can be registered for multiple authentication methods.

A special value null can be used for the authentication_method, which means a default credentials prompter, that is to be used when there is no prompter registered for the exact authentication method.

Parameters:

this

an CredentialsPrompter

authentication_method

an authentication method to registr prompter_impl for; or null

prompter_impl

an CredentialsPrompterImpl

Returns:

true on success, false on failure or when there was another prompter implementation registered for the given authentication method.