-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
155 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Certes.Acme | ||
{ | ||
/// <summary> | ||
/// Represents the ACME directory. | ||
/// </summary> | ||
public class AcmeDirectory | ||
{ | ||
/// <summary> | ||
/// Gets or sets the new nonce endpoint. | ||
/// </summary> | ||
/// <value> | ||
/// The new nonce endpoint. | ||
/// </value> | ||
[JsonProperty("new-nonce")] | ||
public Uri NewNonce { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the new certificate endpoint. | ||
/// </summary> | ||
/// <value> | ||
/// The new certificate endpoint. | ||
/// </value> | ||
[JsonProperty("new-cert")] | ||
public Uri NewCert { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the new authorization endpoint. | ||
/// </summary> | ||
/// <value> | ||
/// The new authorization endpoint. | ||
/// </value> | ||
[JsonProperty("new-authz")] | ||
public Uri NewAuthz { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the revoke cert. | ||
/// </summary> | ||
/// <value> | ||
/// The revoke cert. | ||
/// </value> | ||
[JsonProperty("revoke-cert")] | ||
public Uri RevokeCert { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the key change endpoint. | ||
/// </summary> | ||
/// <value> | ||
/// The key change endpoint. | ||
/// </value> | ||
[JsonProperty("key-change")] | ||
public Uri KeyChange { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the new registration endpoint. | ||
/// </summary> | ||
/// <value> | ||
/// The new registration endpoint. | ||
/// </value> | ||
[JsonProperty("new-reg")] | ||
public Uri NewReg { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the metadata. | ||
/// </summary> | ||
/// <value> | ||
/// The metadata. | ||
/// </value> | ||
[JsonProperty("meta")] | ||
public AcmeDirectoryMeta Meta { get; set; } | ||
|
||
/// <summary> | ||
/// Represents the metadata for ACME directory. | ||
/// </summary> | ||
public class AcmeDirectoryMeta | ||
{ | ||
/// <summary> | ||
/// Gets or sets the terms of service. | ||
/// </summary> | ||
/// <value> | ||
/// The terms of service. | ||
/// </value> | ||
[JsonProperty("terms-of-service")] | ||
public Uri TermsOfService { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the website. | ||
/// </summary> | ||
/// <value> | ||
/// The website. | ||
/// </value> | ||
[JsonProperty("website")] | ||
public Uri Website { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the caa identities. | ||
/// </summary> | ||
/// <value> | ||
/// The caa identities. | ||
/// </value> | ||
[JsonProperty("caa-identities")] | ||
public IList<string> CaaIdentities { get; set; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters