Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DistributionPoints.cs
2
4{
9 {
10 private DistributionPoint[]? distributionPoints;
11
15 public override string Oid => "2.5.29.31";
16
20 public override bool IsConfigured => this.distributionPoints is not null;
21
27 public override bool Configure(Vector SecurityInfo)
28 {
30
31 if (SecurityInfo.LastElementNested is Vector DistributionPoints)
32 {
33 if (DistributionPoints.Length == 1 &&
34 DistributionPoints.FirstElement is Vector v &&
35 (v.SubSection[0] & 0x80) == 0)
36 {
38 }
39
40 foreach (object? Element in DistributionPoints)
41 {
42 if (Element is Vector DistributionPointVector &&
43 DistributionPoint.TryCreate(DistributionPointVector, out DistributionPoint? Point))
44 {
45 Points.Add(Point);
46 }
47 }
48 }
49
50 this.distributionPoints = [.. Points];
51
52 return true;
53 }
54
58 public DistributionPoint[] Points => this.distributionPoints!;
59 }
60}
static bool TryCreate(Vector SecurityInfo, [NotNullWhen(true)] out DistributionPoint? Result)
Tries to create a Distribution Point object instance from its ASN.1 decoded representation.
override bool Configure(Vector SecurityInfo)
If the object can be configured by the security information provided.
Abstract base class for security objects.
A chunked list is a linked list of chunks of objects of type T .
Definition: ChunkedList.cs:54