Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AcmeIdentifier.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using Waher.Content;
6
8{
13 {
14 private readonly string type = null;
15 private readonly string value = null;
16
23 public AcmeIdentifier(AcmeClient Client, string Type, string Value)
24 : base(Client)
25 {
26 this.type = Type;
27 this.value = Value;
28 }
29
30 internal AcmeIdentifier(AcmeClient Client, IEnumerable<KeyValuePair<string, object>> Obj)
31 : base(Client)
32 {
33 foreach (KeyValuePair<string, object> P in Obj)
34 {
35 switch (P.Key)
36 {
37 case "type":
38 this.type = P.Value as string;
39 break;
40
41 case "value":
42 this.value = P.Value as string;
43 break;
44 }
45 }
46 }
47
51 public string Type => this.type;
52
56 public string Value => this.value;
57
59 public override string ToString()
60 {
61 return this.type + ":" + this.value;
62 }
63 }
64}
Implements an ACME client for the generation of certificates using ACME-compliant certificate servers...
Definition: AcmeClient.cs:24
Represents an ACME identifier.
string Type
Type of identifier.
AcmeIdentifier(AcmeClient Client, string Type, string Value)
Represents an ACME identifier.
string Value
Identifier value.
Abstract base class for all ACME objects.
Definition: AcmeObject.cs:11
AcmeClient Client
ACME client.
Definition: AcmeObject.cs:26