Share via


ClientAssertionCertificate Class

Definition

Caution

Use ConfidentialClientApplicationBuilder.WithCertificate instead. See https://aka.ms/msal-net-3-breaking-changes.

Certificate for a client assertion. This class is used in one of the constructors of ClientCredential. ClientCredential is itself used in the constructor of ConfidentialClientApplication to pass to Azure AD a shared secret (registered in the Azure AD application)

[System.Obsolete("Use ConfidentialClientApplicationBuilder.WithCertificate instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
public sealed class ClientAssertionCertificate
[<System.Obsolete("Use ConfidentialClientApplicationBuilder.WithCertificate instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)>]
type ClientAssertionCertificate = class
Public NotInheritable Class ClientAssertionCertificate
Inheritance
ClientAssertionCertificate
Attributes

Remarks

To understand the difference between public client applications and confidential client applications, see https://aka.ms/msal-net-client-applications

Constructors

ClientAssertionCertificate(X509Certificate2)

Constructor to create certificate information used in ClientCredential to instantiate a ClientCredential used in the constructors of ConfidentialClientApplication

Properties

Certificate

Gets the X509 certificate used as credentials to prove the identity of the application to Azure AD.

MinKeySizeInBits

Gets minimum X509 certificate key size in bits

Applies to

See also