A base type of credential that uses Azure::Core::AccessToken to authenticate requests.
#include <credentials.hpp>
|
| | TokenCredential (std::string const &credentialName) |
| | Constructs an instance of TokenCredential.
|
| |
| | TokenCredential () |
| | Constructs a default instance of TokenCredential.
|
| |
◆ ~TokenCredential()
| virtual AZ_CORE_DLLEXPORT Azure::Core::Credentials::TokenCredential::~TokenCredential |
( |
| ) |
|
|
virtualdefault |
◆ TokenCredential() [1/2]
| Azure::Core::Credentials::TokenCredential::TokenCredential |
( |
std::string const & |
credentialName | ) |
|
|
inlineprotected |
- Parameters
-
| credentialName | Name of the credential for diagnostic messages. |
◆ TokenCredential() [2/2]
| Azure::Core::Credentials::TokenCredential::TokenCredential |
( |
| ) |
|
|
inlineprotected |
◆ GetCredentialName()
| std::string const & Azure::Core::Credentials::TokenCredential::GetCredentialName |
( |
| ) |
const |
|
inline |
◆ GetToken()
- Parameters
-
| tokenRequestContext | A context to get the token in. |
| context | A context to control the request lifetime. |
- Returns
- Authentication token.
- Exceptions
-
The documentation for this class was generated from the following file: