共用方式為


ClientCertificateCredential Constructors

Definition

Overloads

ClientCertificateCredential()

Protected constructor for mocking.

ClientCertificateCredential(String, String, X509Certificate2)

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

ClientCertificateCredential(String, String, String)

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

ClientCertificateCredential(String, String, X509Certificate2, ClientCertificateCredentialOptions)

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

ClientCertificateCredential(String, String, String, ClientCertificateCredentialOptions)

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

ClientCertificateCredential()

Source:
ClientCertificateCredential.cs
Source:
ClientCertificateCredential.cs

Protected constructor for mocking.

protected ClientCertificateCredential ();
Protected Sub New ()

Applies to

ClientCertificateCredential(String, String, X509Certificate2)

Source:
ClientCertificateCredential.cs
Source:
ClientCertificateCredential.cs

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

public ClientCertificateCredential (string tenantId, string clientId, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate);
new Azure.Identity.ClientCertificateCredential : string * string * System.Security.Cryptography.X509Certificates.X509Certificate2 -> Azure.Identity.ClientCertificateCredential
Public Sub New (tenantId As String, clientId As String, clientCertificate As X509Certificate2)

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientCertificate
X509Certificate2

The authentication X509 Certificate of the service principal

Applies to

ClientCertificateCredential(String, String, String)

Source:
ClientCertificateCredential.cs
Source:
ClientCertificateCredential.cs

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

public ClientCertificateCredential (string tenantId, string clientId, string clientCertificatePath);
new Azure.Identity.ClientCertificateCredential : string * string * string -> Azure.Identity.ClientCertificateCredential
Public Sub New (tenantId As String, clientId As String, clientCertificatePath As String)

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientCertificatePath
String

The path to a file which contains both the client certificate and private key.

Applies to

ClientCertificateCredential(String, String, X509Certificate2, ClientCertificateCredentialOptions)

Source:
ClientCertificateCredential.cs
Source:
ClientCertificateCredential.cs

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

public ClientCertificateCredential (string tenantId, string clientId, System.Security.Cryptography.X509Certificates.X509Certificate2 clientCertificate, Azure.Identity.ClientCertificateCredentialOptions options);
new Azure.Identity.ClientCertificateCredential : string * string * System.Security.Cryptography.X509Certificates.X509Certificate2 * Azure.Identity.ClientCertificateCredentialOptions -> Azure.Identity.ClientCertificateCredential
Public Sub New (tenantId As String, clientId As String, clientCertificate As X509Certificate2, options As ClientCertificateCredentialOptions)

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientCertificate
X509Certificate2

The authentication X509 Certificate of the service principal

options
ClientCertificateCredentialOptions

Options that allow to configure the management of the requests sent to Microsoft Entra ID.

Applies to

ClientCertificateCredential(String, String, String, ClientCertificateCredentialOptions)

Source:
ClientCertificateCredential.cs
Source:
ClientCertificateCredential.cs

Creates an instance of the ClientCertificateCredential with the details needed to authenticate against Microsoft Entra ID with the specified certificate.

public ClientCertificateCredential (string tenantId, string clientId, string clientCertificatePath, Azure.Identity.ClientCertificateCredentialOptions options);
new Azure.Identity.ClientCertificateCredential : string * string * string * Azure.Identity.ClientCertificateCredentialOptions -> Azure.Identity.ClientCertificateCredential
Public Sub New (tenantId As String, clientId As String, clientCertificatePath As String, options As ClientCertificateCredentialOptions)

Parameters

tenantId
String

The Microsoft Entra tenant (directory) ID of the service principal.

clientId
String

The client (application) ID of the service principal

clientCertificatePath
String

The path to a file which contains both the client certificate and private key.

options
ClientCertificateCredentialOptions

Options that allow to configure the management of the requests sent to Microsoft Entra ID.

Applies to