EncryptedKeyEncryptingCredentials Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe EncryptedKeyEncryptingCredentials.
Surcharges
| Nom | Description |
|---|---|
| EncryptedKeyEncryptingCredentials(X509Certificate2) |
Initialise une nouvelle instance de la EncryptedKeyEncryptingCredentials classe en fonction du certificat X.509 spécifié. |
| EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String) |
Initialise une nouvelle instance de la classe en fonction de l’objet, de la taille de clé et de l’algorithme EncryptedKeyEncryptingCredentials de chiffrement spécifiés EncryptingCredentials . |
| EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String) |
Initialise une nouvelle instance de la EncryptedKeyEncryptingCredentials classe en fonction du certificat X.509 spécifié, de l’algorithme d’habillage, de la taille de clé et de l’algorithme de chiffrement spécifiés. |
EncryptedKeyEncryptingCredentials(X509Certificate2)
Initialise une nouvelle instance de la EncryptedKeyEncryptingCredentials classe en fonction du certificat X.509 spécifié.
public:
EncryptedKeyEncryptingCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate);
public EncryptedKeyEncryptingCredentials(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate);
new System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 -> System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials
Public Sub New (certificate As X509Certificate2)
Paramètres
- certificate
- X509Certificate2
Certificat utilisé pour chiffrer la clé.
Remarques
Utilisez ce constructeur si les informations d’identification d’habillage sont un certificat X.509 et que vous souhaitez utiliser l’algorithme d’habillage par défaut et l’algorithme de chiffrement, qui sont RSA-OAEP et AES256 respectivement.
S’applique à
EncryptedKeyEncryptingCredentials(EncryptingCredentials, Int32, String)
Initialise une nouvelle instance de la classe en fonction de l’objet, de la taille de clé et de l’algorithme EncryptedKeyEncryptingCredentials de chiffrement spécifiés EncryptingCredentials .
public:
EncryptedKeyEncryptingCredentials(System::IdentityModel::Tokens::EncryptingCredentials ^ wrappingCredentials, int keySizeInBits, System::String ^ encryptionAlgorithm);
public EncryptedKeyEncryptingCredentials(System.IdentityModel.Tokens.EncryptingCredentials wrappingCredentials, int keySizeInBits, string encryptionAlgorithm);
new System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials : System.IdentityModel.Tokens.EncryptingCredentials * int * string -> System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials
Public Sub New (wrappingCredentials As EncryptingCredentials, keySizeInBits As Integer, encryptionAlgorithm As String)
Paramètres
- wrappingCredentials
- EncryptingCredentials
Informations d’identification d’habillage de clé utilisées pour chiffrer la clé de session.
- keySizeInBits
- Int32
Taille de clé de la clé de session encapsulée.
- encryptionAlgorithm
- String
URI qui représente l’algorithme de chiffrement lorsque la clé de session est utilisée. Il doit s’agir d’un algorithme de clé symétrique.
Exceptions
wrappingCredentials a la valeur null.
Remarques
Utilisez ce constructeur si vous disposez déjà d’un EncryptingCredentials objet et que vous souhaitez l’utiliser comme informations d’identification d’habillage.
S’applique à
EncryptedKeyEncryptingCredentials(X509Certificate2, String, Int32, String)
Initialise une nouvelle instance de la EncryptedKeyEncryptingCredentials classe en fonction du certificat X.509 spécifié, de l’algorithme d’habillage, de la taille de clé et de l’algorithme de chiffrement spécifiés.
public:
EncryptedKeyEncryptingCredentials(System::Security::Cryptography::X509Certificates::X509Certificate2 ^ certificate, System::String ^ keyWrappingAlgorithm, int keySizeInBits, System::String ^ encryptionAlgorithm);
public EncryptedKeyEncryptingCredentials(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, string keyWrappingAlgorithm, int keySizeInBits, string encryptionAlgorithm);
new System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials : System.Security.Cryptography.X509Certificates.X509Certificate2 * string * int * string -> System.IdentityModel.Tokens.EncryptedKeyEncryptingCredentials
Public Sub New (certificate As X509Certificate2, keyWrappingAlgorithm As String, keySizeInBits As Integer, encryptionAlgorithm As String)
Paramètres
- certificate
- X509Certificate2
Certificat utilisé pour chiffrer la clé.
- keyWrappingAlgorithm
- String
URI qui représente l’algorithme d’habillage de clé. Il doit s’agir d’un algorithme asymétrique.
- keySizeInBits
- Int32
Taille de clé de la clé de session encapsulée.
- encryptionAlgorithm
- String
URI qui représente l’algorithme de chiffrement lorsque la clé de session est utilisée. Il doit s’agir d’un algorithme de clé symétrique.
Remarques
Utilisez ce constructeur si les informations d’identification d’habillage sont un certificat X.509 et que vous souhaitez fournir votre propre algorithme de création de package de restrictions et algorithme de chiffrement.