azure-identity
Public Member Functions | List of all members
Azure::Identity::ClientCertificateCredential Class Referencefinal

Client Certificate Credential authenticates with the Azure services using a Tenant ID, Client ID and a client certificate.

#include <client_certificate_credential.hpp>

Inheritance diagram for Azure::Identity::ClientCertificateCredential:

Public Member Functions

 ClientCertificateCredential (std::string tenantId, std::string const &clientId, std::string const &clientCertificatePath, Core::Credentials::TokenCredentialOptions const &options=Core::Credentials::TokenCredentialOptions())
 Constructs a Client Secret Credential. More...
 
 ClientCertificateCredential (std::string tenantId, std::string const &clientId, std::string const &clientCertificatePath, ClientCertificateCredentialOptions const &options)
 Constructs a Client Secret Credential. More...
 
 ~ClientCertificateCredential () override
 Destructs ClientCertificateCredential.
 
Core::Credentials::AccessToken GetToken (Core::Credentials::TokenRequestContext const &tokenRequestContext, Core::Context const &context) const override
 Gets an authentication token. More...
 

Constructor & Destructor Documentation

◆ ClientCertificateCredential() [1/2]

Azure::Identity::ClientCertificateCredential::ClientCertificateCredential ( std::string  tenantId,
std::string const &  clientId,
std::string const &  clientCertificatePath,
Core::Credentials::TokenCredentialOptions const &  options = Core::Credentials::TokenCredentialOptions() 
)
explicit
Parameters
tenantIdTenant ID.
clientIdClient ID.
clientCertificatePathClient certificate path.
optionsOptions for token retrieval.

◆ ClientCertificateCredential() [2/2]

ClientCertificateCredential::ClientCertificateCredential ( std::string  tenantId,
std::string const &  clientId,
std::string const &  clientCertificatePath,
ClientCertificateCredentialOptions const &  options 
)
explicit
Parameters
tenantIdTenant ID.
clientIdClient ID.
clientCertificatePathClient certificate path.
optionsOptions for token retrieval.

Member Function Documentation

◆ GetToken()

AccessToken ClientCertificateCredential::GetToken ( Core::Credentials::TokenRequestContext const &  tokenRequestContext,
Core::Context const &  context 
) const
override
Parameters
tokenRequestContextA context to get the token in.
contextA context to control the request lifetime.
Exceptions
Azure::Core::Credentials::AuthenticationExceptionAuthentication error occurred.

The documentation for this class was generated from the following files: