DataProtectionAdvancedExtensions.Unprotect Metoda

Definicja

Kryptograficznie usuwa ochronę elementu chronionych danych.

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ Unprotect(Microsoft::AspNetCore::DataProtection::ITimeLimitedDataProtector ^ protector, System::String ^ protectedData, [Runtime::InteropServices::Out] DateTimeOffset % expiration);
public static string Unprotect (this Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector protector, string protectedData, out DateTimeOffset expiration);
static member Unprotect : Microsoft.AspNetCore.DataProtection.ITimeLimitedDataProtector * string * DateTimeOffset -> string
<Extension()>
Public Function Unprotect (protector As ITimeLimitedDataProtector, protectedData As String, ByRef expiration As DateTimeOffset) As String

Parametry

protector
ITimeLimitedDataProtector

Funkcja ochrony do użycia.

protectedData
String

Chronione dane do wyrejechowania ochrony.

expiration
DateTimeOffset

Parametr "out", który po pomyślnej operacji unprotect otrzymuje datę wygaśnięcia ładunku.

Zwraca

Postać zwykłego tekstu chronionych danych.

Wyjątki

Zgłaszany, jeśli protectedData jest nieprawidłowy, źle sformułowany lub wygasł.

Dotyczy