Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
KeyIdentifier.cs
2{
3 public abstract class KeyIdentifier : GeneralName
4 {
5 private byte[]? identifier;
6
12 public override bool Configure(Vector SecurityInfo)
13 {
14 if (!base.Configure(SecurityInfo))
15 return false;
16
17 if (this.Name is byte[] Identifier)
18 this.identifier = Identifier;
19 else if (this.Name is string s && string.IsNullOrEmpty(s))
20 this.identifier = [];
21 else
22 return false;
23
24
25 return true;
26 }
27
31 public override bool IsConfigured => this.identifier is not null;
32
36 public byte[] Identifier => this.identifier ?? [];
37 }
38}
Abstract base class for general name properties.
Definition: GeneralName.cs:12
override bool Configure(Vector SecurityInfo)
If the object can be configured by the security information provided.
override bool IsConfigured
If the object has been configured.