Langue

SlhDsa.ImportFromPem Méthode

Définition

Importe une clé SLH-DSA à partir d’une chaîne encodée en PEM RFC 7468.

Surcharges

Nom Description
ImportFromPem(String)

Importe une clé SLH-DSA à partir d’une chaîne encodée en PEM RFC 7468.

ImportFromPem(ReadOnlySpan<Char>)

Importe une clé SLH-DSA à partir d’une chaîne encodée en PEM RFC 7468.

ImportFromPem(String)

Source:
SlhDsa.cs
Source:
SlhDsa.cs
Source:
SlhDsa.cs

Importe une clé SLH-DSA à partir d’une chaîne encodée en PEM RFC 7468.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportFromPem(System::String ^ source);
public static System.Security.Cryptography.SlhDsa ImportFromPem(string source);
static member ImportFromPem : string -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportFromPem (source As String) As SlhDsa

Paramètres

source
String

Texte de la clé PEM à importer.

Retours

Clé SLH-DSA importée.

Exceptions

source a la valeur null.

S’applique à

ImportFromPem(ReadOnlySpan<Char>)

Source:
SlhDsa.cs
Source:
SlhDsa.cs
Source:
SlhDsa.cs

Importe une clé SLH-DSA à partir d’une chaîne encodée en PEM RFC 7468.

public:
 static System::Security::Cryptography::SlhDsa ^ ImportFromPem(ReadOnlySpan<char> source);
public static System.Security.Cryptography.SlhDsa ImportFromPem(ReadOnlySpan<char> source);
static member ImportFromPem : ReadOnlySpan<char> -> System.Security.Cryptography.SlhDsa
Public Shared Function ImportFromPem (source As ReadOnlySpan(Of Char)) As SlhDsa

Paramètres

source
ReadOnlySpan<Char>

Texte de la clé PEM à importer.

Retours

Clé SLH-DSA importée.

Exceptions

source contient une clé encodée PEM chiffrée.

- ou -

source contient plusieurs clés SLH-DSA encodées pem.

- ou -

source ne contient aucune clé SLH-DSA encodée PEM.

Une erreur s’est produite lors de l’importation de la clé.

La plateforme ne prend pas en charge SLH-DSA. Les appelants peuvent utiliser la IsSupported propriété pour déterminer si la plateforme prend en charge SLH-DSA.

Remarques

Les objets encodés PEM non pris en charge ou mal formés sont ignorés. Si plusieurs étiquettes PEM prises en charge sont trouvées, une exception est levée pour empêcher l’importation d’une clé lorsque la clé est ambiguë.

Cette méthode prend en charge les étiquettes PEM suivantes :

  • CLÉ PUBLIQUE
  • CLÉ PRIVÉE

S’applique à