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

Microsoft.IdentityModel.Tokens.SigningCredentials

public class SigningCredentials
Defines the SecurityKey, algorithm and digest for digital signatures.
public string Algorithm { get; }

Gets the signature algorithm.

Users can override the default CryptoProviderFactory with this property. This factory will be used for creating signature providers.

public string Digest { get; }

Gets the digest algorithm.

public SecurityKey Key { get; }

Gets the SecurityKey used for signature creation or validation.

public string Kid { get; }

Gets the key id associated with SecurityKey.

protected SigningCredentials(X509Certificate2 certificate)

Initializes a new instance of the SigningCredentials class.

protected SigningCredentials(X509Certificate2 certificate, string algorithm)

Initializes a new instance of the SigningCredentials class.

public SigningCredentials(SecurityKey key, string algorithm)

Initializes a new instance of the SigningCredentials class.

public SigningCredentials(SecurityKey key, string algorithm, string digest)

Initializes a new instance of the SigningCredentials class.