Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PublicKeyEventArgs.cs
1using System;
2
4{
8 public class PublicKeyEventArgs : EventArgs
9 {
15 public PublicKeyEventArgs(string Address, DateTime? Timestamp)
16 : base()
17 {
18 this.Address = Address;
19 this.Timestamp = Timestamp;
20 this.Key = null;
21 }
22
26 public string Address { get; }
27
31 public DateTime? Timestamp { get; }
32
36 public IE2eEndpoint Key { get; private set; }
37
41 public DateTime? ValidFrom { get; private set; }
42
46 public DateTime? ValidTo { get; private set; }
47
54 public void ReturnKey(IE2eEndpoint Key, DateTime From, DateTime? To)
55 {
56 this.Key = Key;
57 this.ValidFrom = From;
58 this.ValidTo = To;
59 }
60 }
61}
IE2eEndpoint Key
Public key of endpoint corresponding to Address.
DateTime? Timestamp
Optional Timestamp for when the key was used, in UTC.
PublicKeyEventArgs(string Address, DateTime? Timestamp)
Event arguments for public key request events.
void ReturnKey(IE2eEndpoint Key, DateTime From, DateTime? To)
Returns a public key, and the time period for which it is valid.
Abstract base class for End-to-End encryption schemes.
Definition: IE2eEndpoint.cs:13