1using System.Security.Cryptography.X509Certificates;
43 int i, c = Tokens.Length;
46 for (i = 0; i < c; i++)
55 [DefaultValueStringEmpty]
61 [DefaultValueStringEmpty]
67 [DefaultValueStringEmpty]
105 bool Updated =
false;
112 lock (certificatesyByToken)
114 if (certificatesyByToken.TryGetValue(Token.
Token, out X509Certificate2? Certificate))
116 Token.FriendlyName = Certificate.FriendlyName;
117 Token.Certificate = Certificate.RawData;
130 private static readonly Dictionary<string, X509Certificate2> certificatesyByToken = [];
134 if (e.
Ok && e.
State is ProvisioningToken Token)
136 lock (certificatesyByToken)
Abstract base class of provisioning notification events.
A record of a token used in provisioning.
string? FriendlyName
Friendly Name of certificate
Abstract base class of thing notification events.
ThingNotificationEvent(NodeQuestionEventArgs e)
Abstract base class of thing notification events.
ProvisioningToken?[] DeviceTokens
Device tokens
string? SourceId
Source ID of thing.
string? NodeId
Node ID of thing.
string? PartitionId
Partition ID of thing.
ProvisioningToken?[] UserTokens
User tokens
ThingNotificationEvent()
Abstract base class of thing notification events.
override async Task Prepare()
Performs perparatory tasks, that will simplify opening the notification.
ProvisioningToken?[] ServiceTokens
Service tokens
string BareJid
Bare JID of sender.
Base class that references services in the app.
static IXmppService XmppService
The XMPP service for XMPP communication.
bool Ok
If the response is an OK result response (true), or an error response (false).
object State
State object passed to the original request.
Event arguments for token callbacks.
X509Certificate2 Certificate
Certificate corresponding to the given token.
Abstract base class containing event arguments for node question events.
string[] ServiceTokens
Any service tokens available in the request.
string NodeId
Node ID, if applicable.
string SourceId
Source ID, if applicable.
string[] UserTokens
And user tokens available in the request.
string[] DeviceTokens
And device tokens available in the request.
string Partition
Partition, if applicable.
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static async Task Update(object Object)
Updates an object in the database.
TokenType
Provisioning Token Type