mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-11-07 11:21:36 +01:00
Summary: https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901257 Resolves T12899 Reviewers: ivica Reviewed By: ivica Subscribers: korina Maniphest Tasks: T12899 Differential Revision: https://repo.mireo.local/D26414
34 lines
902 B
Plaintext
34 lines
902 B
Plaintext
[/
|
|
Copyright (c) 2023 Mireo
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
]
|
|
|
|
[section:is_authenticator is_authenticator concept]
|
|
|
|
A type `Authenticator` satisfies `is_authenticator` concept if it satisifes the requirements listed below.
|
|
|
|
[table
|
|
[[operation] [type] [arguments]]
|
|
[
|
|
[```a.async_auth(step, data, h)```]
|
|
[`void`]
|
|
[
|
|
[*`step`] is [reflink2 auth_step_e async_mqtt5::auth_step_e] that specifies current authentication stage.
|
|
|
|
[*`data`] is `std::string`, server's authentication data.
|
|
|
|
[*`h`] is [asioreflink any_completion_handler any_completion_handler] with signature `void(__ERROR_CODE__ ec, std::string client_data)`. If `ec` is non-trivial, authentication is aborted.
|
|
]
|
|
]
|
|
[
|
|
[```a.method()```]
|
|
[`std::string_view`, authentication method]
|
|
[]
|
|
]
|
|
]
|
|
|
|
|
|
[endsect]
|