31 references to Unprotect
CustomEncryptorSample (1)
Program.cs (1)
29var unprotectedPayload = protector.Unprotect(protectedPayload);
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\OpaqueRedirection.cs (1)
79url = protector.Unprotect(protectedUrl[0]!);
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
EndpointHtmlRendererTest.cs (10)
316var unprotectedServerComponent = protector.Unprotect(marker.Descriptor); 349var unprotectedServerComponent = protector.Unprotect(preambleMarker.Descriptor); 412var unprotectedFirstServerComponent = protector.Unprotect(preambleMarker.Descriptor); 423var unprotectedSecondServerComponent = protector.Unprotect(markerMarker.Descriptor); 467var unprotectedServerComponent = protector.Unprotect(marker.Descriptor); 506var unprotectedServerComponent = protector.Unprotect(marker.Descriptor); 546var unprotectedServerComponent = protector.Unprotect(preambleMarker.Descriptor); 597var unprotectedServerComponent = protector.Unprotect(preambleMarker.Descriptor); 1080var unprotectedServerComponent = protector.Unprotect(marker.Descriptor); 1109var unprotectedServerComponent = protector.Unprotect(marker.Descriptor);
Microsoft.AspNetCore.Components.Server (1)
ProtectedBrowserStorage\ProtectedBrowserStorage.cs (1)
134var json = protector.Unprotect(protectedJson);
Microsoft.AspNetCore.Components.Server.Tests (1)
ProtectedBrowserStorageTest.cs (1)
303=> new TestDataProtector(purpose).Unprotect(protectedValue);
Microsoft.AspNetCore.DataProtection.Abstractions.Tests (3)
DataProtectionCommonExtensionsTests.cs (3)
280mockProtector.Object.Unprotect("A"); 294mockProtector.Object.Unprotect("AQIDBAU"); 307string retVal = DataProtectionCommonExtensions.Unprotect(mockProtector.Object, "AQIDBAU");
Microsoft.AspNetCore.DataProtection.Extensions (1)
DataProtectionAdvancedExtensions.cs (1)
94string retVal = wrappingProtector.Unprotect(protectedData);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (9)
DataProtectionProviderTests.cs (9)
35Assert.Equal("payload", protector.Unprotect(protector.Protect("payload"))); 70Assert.Equal("payload", protector.Unprotect(protector.Protect("payload"))); 104Assert.Equal("payload", protector.Unprotect(protector.Protect("payload"))); 150Assert.Equal("payload", unprotector.Unprotect(data)); 199Assert.Throws<CryptographicException>(() => keylessUnprotector.Unprotect(data)); 202Assert.Equal("payload", unprotector.Unprotect(data)); 230protector.Unprotect(protector.Protect("payload"))); 259protector.Unprotect(protector.Protect("payload"))); 314Assert.Equal("payload", unprotector.CreateProtector("purpose").Unprotect(data));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
PersistComponentStateTagHelperTest.cs (2)
162var message = _protector.Unprotect(payload); 215var message = _protector.Unprotect(payload);
ProtectedPrerenderComponentApplicationStateTest.cs (1)
33Assert.Equal(expected, _protector.Unprotect(store.PersistedState));
NonDISample (1)
Program.cs (1)
34var unprotectedPayload = protector.Unprotect(protectedPayload);