Ansight.Tools.SecureStorage
0.1.0-pre1
This is a prerelease version of Ansight.Tools.SecureStorage.
dotnet add package Ansight.Tools.SecureStorage --version 0.1.0-pre1
NuGet\Install-Package Ansight.Tools.SecureStorage -Version 0.1.0-pre1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ansight.Tools.SecureStorage" Version="0.1.0-pre1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ansight.Tools.SecureStorage" Version="0.1.0-pre1" />
<PackageReference Include="Ansight.Tools.SecureStorage" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ansight.Tools.SecureStorage --version 0.1.0-pre1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Ansight.Tools.SecureStorage, 0.1.0-pre1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ansight.Tools.SecureStorage@0.1.0-pre1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ansight.Tools.SecureStorage&version=0.1.0-pre1&prerelease
#tool nuget:?package=Ansight.Tools.SecureStorage&version=0.1.0-pre1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Ansight.Tools.SecureStorage
Grouped secure-storage tool registrations for the Ansight .NET SDK.
Registered tools:
secure.get_valuesecure.set_valuesecure.remove_key
Usage
using Ansight;
using Ansight.Tools.SecureStorage;
var options = Options.CreateBuilder()
.WithSecureStorageTools(secure =>
{
secure.WithStorageIdentifier("MyApp");
secure.AllowKeys("session_token", "refresh_token");
})
.WithReadWriteToolAccess()
.Build();
secure.remove_key is delete-scoped. Use WithAllToolAccess() or a custom ToolGuard if you want delete operations to execute.
Restrictions
Secure-storage access is deny-all by default. You must explicitly allow keys with:
AllowKey(...)/AllowKeys(...)AllowKeyPrefix(...)/AllowKeyPrefixes(...)
Storage selection is configured at registration time:
WithStorageIdentifier(...)sets both the Android encrypted-preferences name and Apple Keychain service.WithAndroidStore(...)overrides the Android encrypted-preferences name.WithAppleService(...)overrides the Apple Keychain service.
These tools are intended for local debugging only and may expose highly sensitive application data.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Ansight (>= 0.1.0-pre1)
-
net9.0-android35.0
- Ansight (>= 0.1.0-pre1)
- Xamarin.AndroidX.Security.SecurityCrypto (>= 1.1.0.4-alpha07)
-
net9.0-ios18.0
- Ansight (>= 0.1.0-pre1)
-
net9.0-maccatalyst18.0
- Ansight (>= 0.1.0-pre1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-pre1 | 29 | 3/31/2026 |