<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="8.19.0" />

Microsoft.IdentityModel.Tokens.X509EncryptingCredentials

An X509EncryptingCredentials designed to construct EncryptingCredentials based on a x509 certificate.
public X509Certificate2 Certificate { get; }

Gets the X509Certificate2 used by this instance.

Designed to construct EncryptingCredentials based on a x509 certificate.

public X509EncryptingCredentials(X509Certificate2 certificate, string keyWrapAlgorithm, string dataEncryptionAlgorithm)

Designed to construct EncryptingCredentials based on the x509 certificate, a key wrap algorithm, and data encryption algorithm.