Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AcmeOrders.cs
1using System;
2using System.Collections.Generic;
3using System.Net.Http;
4using System.Text.RegularExpressions;
5using Waher.Content;
6
8{
12 public class AcmeOrders : AcmeObject
13 {
14 private readonly Uri[] orders = null;
15 private readonly Uri next = null;
16
17 internal AcmeOrders(AcmeClient Client, HttpResponseMessage Response, IEnumerable<KeyValuePair<string, object>> Obj)
18 : base(Client)
19 {
20 this.next = AcmeClient.GetLink(Response, "next");
21
22 foreach (KeyValuePair<string, object> P in Obj)
23 {
24 switch (P.Key)
25 {
26 case "orders":
27 if (P.Value is Array A)
28 {
29 List<Uri> Orders = new List<Uri>();
30
31 foreach (object Obj2 in A)
32 {
33 if (Obj2 is string s)
34 Orders.Add(new Uri(s));
35 }
36
37 this.orders = Orders.ToArray();
38 }
39 break;
40 }
41 }
42 }
43
47 public Uri[] Orders => this.orders;
48
52 public Uri Next => this.next;
53 }
54}
Implements an ACME client for the generation of certificates using ACME-compliant certificate servers...
Definition: AcmeClient.cs:24
Abstract base class for all ACME objects.
Definition: AcmeObject.cs:11
AcmeClient Client
ACME client.
Definition: AcmeObject.cs:26
Represents a set of ACME orders.
Definition: AcmeOrders.cs:13
Uri Next
If provided, indicates where further entries can be acquired.
Definition: AcmeOrders.cs:52
Uri[] Orders
An array of URLs, each identifying an order belonging to the account.
Definition: AcmeOrders.cs:47