Loading...
Searching...
No Matches
oidc_credential.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/v1/oidc_credential-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <bsoncxx/v1/stdx/string_view.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <chrono>
#include <string>
namespace mongocxx {
namespace v1 {
class oidc_credential {
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~oidc_credential();
MONGOCXX_ABI_EXPORT_CDECL() oidc_credential(oidc_credential&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(oidc_credential&) operator=(oidc_credential&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() oidc_credential(oidc_credential const& other);
MONGOCXX_ABI_EXPORT_CDECL(oidc_credential&) operator=(oidc_credential const& other);
explicit MONGOCXX_ABI_EXPORT_CDECL() oidc_credential(std::string access_token);
explicit MONGOCXX_ABI_EXPORT_CDECL() oidc_credential(
std::string access_token,
std::chrono::milliseconds expires_in);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::string_view) access_token() const;
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::chrono::milliseconds>) expires_in() const;
class internal;
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::oidc_credential::oidc_credential
oidc_credential(oidc_credential &&other) noexcept
Move constructor.
mongocxx::v1::oidc_credential::expires_in
bsoncxx::v1::stdx::optional< std::chrono::milliseconds > expires_in() const
Return the optional expiry duration.
mongocxx::v1::oidc_credential::oidc_credential
oidc_credential(oidc_credential &&other) noexcept
Move constructor.
mongocxx::v1::oidc_credential::access_token
bsoncxx::v1::stdx::string_view access_token() const
Return the access token.
mongocxx::v1::oidc_credential::~oidc_credential
~oidc_credential()
Destroy this object.
export.hpp
Provides macros to control the set of symbols exported in the ABI.
MONGOCXX_ABI_EXPORT_CDECL
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
prelude.hpp
The mongocxx v1 macro guard prelude header.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
oidc_credential-fwd.hpp
Declares mongocxx::v1::oidc_credential.
optional.hpp
Provides std::optional-related polyfills for library API usage.
string_view.hpp
Provides std::string_view-related polyfills for library API usage.