Upload cross-signing keys.
More...
#include <cross_signing.hpp>
|
| UploadCrossSigningKeysJob (std::string serverUrl, std::string _accessToken, std::optional< CrossSigningKey > masterKey=std::nullopt, std::optional< CrossSigningKey > selfSigningKey=std::nullopt, std::optional< CrossSigningKey > userSigningKey=std::nullopt, std::optional< AuthenticationData > auth=std::nullopt) |
| Upload cross-signing keys. More...
|
|
UploadCrossSigningKeysJob | withData (JsonWrap j) && |
|
UploadCrossSigningKeysJob | withData (JsonWrap j) const & |
|
| BaseJob (std::string serverUrl, std::string requestUrl, Method method, std::string jobId, std::string token={}, ReturnType returnType=ReturnType::Json, Body body=EmptyBody{}, Query query={}, Header header={}, std::optional< FileDesc > responseFile=std::nullopt) |
|
| ~BaseJob () |
|
bool | shouldReturnJson () const |
|
std::string | url () const |
|
Body | requestBody () const |
|
Header | requestHeader () const |
|
ReturnType | returnType () const |
|
Query | requestQuery () const |
| returns the non-encoded query as an array of pairs More...
|
|
Method | requestMethod () const |
|
Response | genResponse (Response r) const |
|
BaseJob | withData (JsonWrap j) && |
|
BaseJob | withData (JsonWrap j) const & |
|
BaseJob | withQueue (std::string id, JobQueuePolicy policy=AlwaysContinue) && |
|
BaseJob | withQueue (std::string id, JobQueuePolicy policy=AlwaysContinue) const & |
|
json | dataJson (const std::string &key) const |
|
std::string | dataStr (const std::string &key) const |
|
std::string | jobId () const |
|
std::optional< std::string > | queueId () const |
|
JobQueuePolicy | queuePolicy () const |
|
std::optional< FileDesc > | responseFile () const |
|
Upload cross-signing keys.
Publishes cross-signing keys for the user.
This API endpoint uses the User-Interactive Authentication API.
◆ UploadCrossSigningKeysJob()
Kazv::Api::UploadCrossSigningKeysJob::UploadCrossSigningKeysJob |
( |
std::string |
serverUrl, |
|
|
std::string |
_accessToken, |
|
|
std::optional< CrossSigningKey > |
masterKey = std::nullopt , |
|
|
std::optional< CrossSigningKey > |
selfSigningKey = std::nullopt , |
|
|
std::optional< CrossSigningKey > |
userSigningKey = std::nullopt , |
|
|
std::optional< AuthenticationData > |
auth = std::nullopt |
|
) |
| |
|
explicit |
Upload cross-signing keys.
- Parameters
-
masterKey | Optional. The user\'s master key. |
selfSigningKey | Optional. The user\'s self-signing key. Must be signed by the accompanying master key, or by the user\'s most recently uploaded master key if no master key is included in the request. |
userSigningKey | Optional. The user\'s user-signing key. Must be signed by the accompanying master key, or by the user\'s most recently uploaded master key if no master key is included in the request. |
auth | Additional authentication information for the user-interactive authentication API. |
◆ buildBody()
◆ buildQuery()
◆ needsAuth()
static constexpr auto Kazv::Api::UploadCrossSigningKeysJob::needsAuth |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ withData() [1/2]
◆ withData() [2/2]
The documentation for this class was generated from the following files: