3using System.Threading.Tasks;
26 : base(
"Storage/GetFromVault",
27 new KeyValuePair<Type,
Expression>(typeof(Dictionary<string, object>), new
Expression(jsonPattern)),
47 string VaultId = (string)Parameters[
"PVaultId"]?.AssociatedObjectValue;
48 bool Masked = (bool)(Parameters[
"PMasked"]?.AssociatedObjectValue ??
true);
53 VaultIdBin = Convert.FromBase64String(VaultId);
67 await Response.
Return(EncodeVaultItem(Item, Masked));
79 {
"value", Masked ? (Tag.MaskedValue ?? Tag.
Value) : Tag.
Value }
85 {
"vaultId", Convert.ToBase64String(Item.
VaultId) },
86 {
"type", Item.Type },
87 {
"clientId", Item.ClientId },
88 {
"created", Item.Created },
89 {
"updated", Item.Updated },
A Named dictionary is a dictionary, with a local name and a namespace. Use it to return content that ...
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repe...
The server understood the request, but is refusing to fulfill it. Authorization will not help and the...
Represents an HTTP request.
Represets a response of an HTTP client request.
Task Return(Exception ex)
Returns an error to the client.
The server has not found anything matching the Request-URI. No indication is given of whether the con...
Static interface for database persistence. In order to work, a database provider has to be assigned t...
This filter selects objects that have a named field equal to a given value.
A chunked list is a linked list of chunks of objects of type T .
void Add(T Item)
Adds an item to the collection.
T[] ToArray()
Returns an array containing all elements of the collection.
Static class managing loading of resources stored as embedded resources or in content files.
static string LoadResourceAsText(string ResourceName)
Loads a text resource from an embedded resource.
Class managing a script expression.
string UserName
User Name.
Abstract base class for agent resources supporting the POST method.
static AccountUser AssertUserAuthenticated(HttpRequest Request)
Makes sure the request is made by an authenticated API user.
const string AgentNamespace
https://waher.se/Schema/BrokerAgent.xsd
Gets information from the Encrypted Vault.
GetFromVault()
> Gets information from the Encrypted Vault.
override async Task POST(HttpRequest Request, HttpResponse Response, Dictionary< string, IElement > Parameters)
Executes the POST method on the resource.
Stores information in the Encrypted Vault.
Contains information about an item in the Vault.
VaultTag[] Tags
Tags containing information about the item.
byte[] VaultId
ID given to the Vault item.
string Account
Account name.
Contains information about a tag in a vault item.