#include <mongocxx/v1/oidc_credential.hpp>
The credential returned by an OIDC callback.
Public Member Functions | |
| oidc_credential (oidc_credential &&other) noexcept | |
| Move constructor. | |
| oidc_credential (oidc_credential const &other) | |
| Copy construction. | |
| oidc_credential (std::string access_token) | |
| Construct a credential with an access token. | |
| oidc_credential (std::string access_token, std::chrono::milliseconds expires_in) | |
| Construct a credential with an access token and expiry duration. | |
| ~oidc_credential () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::string_view | access_token () const |
| Return the access token. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | expires_in () const |
| Return the optional expiry duration. | |
| oidc_credential & | operator= (oidc_credential &&other) noexcept |
| Move assignment. | |
| oidc_credential & | operator= (oidc_credential const &other) |
| Copy assignment. | |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::oidc_credential::oidc_credential | ( | oidc_credential const & | other | ) |
Copy construction.
|
explicit |
Construct a credential with an access token.
|
explicit |
Construct a credential with an access token and expiry duration.
The expiry duration will be evaluated relative to the system clock immediately after the callback returns.
Return the access token.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::oidc_credential::expires_in | ( | ) | const |
Return the optional expiry duration.
|
noexcept |
Move assignment.
| oidc_credential & mongocxx::v1::oidc_credential::operator= | ( | oidc_credential const & | other | ) |
Copy assignment.