X509SigningCredentials Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
X509SigningCredentials(X509Certificate2) |
Initializes a new instance of the X509SigningCredentials class. |
X509SigningCredentials(X509Certificate2, String) |
Initializes a new instance of the X509SigningCredentials class. |
X509SigningCredentials(X509Certificate2)
Initializes a new instance of the X509SigningCredentials class.
public X509SigningCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new Microsoft.IdentityModel.Tokens.X509SigningCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.IdentityModel.Tokens.X509SigningCredentials
Public Sub New (certificate As X509Certificate2)
Parameters
- certificate
- X509Certificate2
X509Certificate2 that will be used for signing.
Exceptions
if 'certificate' is null.
Remarks
Algorithm will be set to RsaSha256. the 'digest method' if needed may be implied from the algorithm. For example RsaSha256 implies Sha256.
Applies to
X509SigningCredentials(X509Certificate2, String)
Initializes a new instance of the X509SigningCredentials class.
public X509SigningCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string algorithm);
new Microsoft.IdentityModel.Tokens.X509SigningCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string -> Microsoft.IdentityModel.Tokens.X509SigningCredentials
Public Sub New (certificate As X509Certificate2, algorithm As String)
Parameters
- certificate
- X509Certificate2
A X509Certificate2 that will be used for signing.
- algorithm
- String
The signature algorithm to apply.
Exceptions
if 'algorithm' is null or empty.
Remarks
the 'digest method' if needed may be implied from the algorithm. For example RsaSha256 implies Sha256.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk