Sdílet prostřednictvím


X509EncryptingCredentials Constructors

Definition

Overloads

X509EncryptingCredentials(X509Certificate2)

Designed to construct EncryptingCredentials based on a x509 certificate.

X509EncryptingCredentials(X509Certificate2, String, String)

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

X509EncryptingCredentials(X509Certificate2)

Designed to construct EncryptingCredentials based on a x509 certificate.

public X509EncryptingCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new Microsoft.IdentityModel.Tokens.X509EncryptingCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 -> Microsoft.IdentityModel.Tokens.X509EncryptingCredentials
Public Sub New (certificate As X509Certificate2)

Parameters

Exceptions

if 'certificate' is null.

Remarks

Microsoft.IdentityModel.Tokens.SecurityAlgorithms.DefaultAsymmetricKeyWrapAlgorithm will be used as the key wrap algorithm Microsoft.IdentityModel.Tokens.SecurityAlgorithms.DefaultSymmetricEncryptionAlgorithm will be used as the data encryption algorithm

Applies to

X509EncryptingCredentials(X509Certificate2, String, String)

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

public X509EncryptingCredentials (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string keyWrapAlgorithm, string dataEncryptionAlgorithm);
new Microsoft.IdentityModel.Tokens.X509EncryptingCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * string -> Microsoft.IdentityModel.Tokens.X509EncryptingCredentials
Public Sub New (certificate As X509Certificate2, keyWrapAlgorithm As String, dataEncryptionAlgorithm As String)

Parameters

keyWrapAlgorithm
String

A key wrap algorithm

dataEncryptionAlgorithm
String

Data encryption algorithm

Exceptions

if 'dataEncryptionAlgorithm' is null or empty.

Applies to