14.1 Beta 1 SDK
IPluginSecretStore14.1 Beta
public interface Unbroken.LaunchBox.Plugins.IPluginSecretStore
Provides protected persistent storage scoped to the requesting plugin and current machine.
Remarks
Protected values may become unreadable after an operating-system or machine migration. Plugins should store only reacquirable secrets here and treat an unavailable value as requiring reconnection.Methods
System.Threading.Tasks.Task<byte[]?> GetValueAsync(Unbroken.LaunchBox.Plugins.PluginSecretStoreGetArgs args, System.Threading.CancellationToken cancellationToken)System.Threading.Tasks.Task RemoveValueAsync(Unbroken.LaunchBox.Plugins.PluginSecretStoreRemoveArgs args, System.Threading.CancellationToken cancellationToken)System.Threading.Tasks.Task SetValueAsync(Unbroken.LaunchBox.Plugins.PluginSecretStoreSetArgs args, System.Threading.CancellationToken cancellationToken)
GetValueAsync 14.1 Beta
System.Threading.Tasks.Task<byte[]?> GetValueAsync(Unbroken.LaunchBox.Plugins.PluginSecretStoreGetArgs args, System.Threading.CancellationToken cancellationToken)
Gets the requested protected value, or
null when no value exists.
args14.1 Beta- The plugin-local key identifying the protected value.
cancellationToken14.1 Beta- A token requesting cancellation of the operation.
Returns
The unprotected bytes, ornull when the key has no value.
- Exception: System.IO.InvalidDataException
- The saved payload is invalid or cannot be unprotected on this machine. The stored bytes are retained.
RemoveValueAsync 14.1 Beta
System.Threading.Tasks.Task RemoveValueAsync(Unbroken.LaunchBox.Plugins.PluginSecretStoreRemoveArgs args, System.Threading.CancellationToken cancellationToken)SetValueAsync 14.1 Beta
System.Threading.Tasks.Task SetValueAsync(Unbroken.LaunchBox.Plugins.PluginSecretStoreSetArgs args, System.Threading.CancellationToken cancellationToken)