-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from CoreLayer/dev-0.1.3-21
Updates to SslCertFile
- Loading branch information
Showing
4 changed files
with
79 additions
and
12 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
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
43 changes: 33 additions & 10 deletions
43
...Layer.Citrix.Adc.NitroClient/Api/Configuration/SSL/SslCertKey/SslCertkeyAddRequestData.cs
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 |
---|---|---|
@@ -1,18 +1,41 @@ | ||
using System.Text.Json.Serialization; | ||
using CoreLayer.Citrix.Adc.NitroClient.Interfaces; | ||
|
||
namespace CoreLayer.Citrix.Adc.NitroClient.Api.Configuration.SSL.SslCertKey | ||
{ | ||
public class SslCertKeyAddRequestData : INitroRequestData | ||
{ | ||
public string FileName { get; } | ||
public string FileContent { get; } | ||
public SslCertKeyAddRequestData(string fileName, string fileContent) | ||
{ | ||
FileName = fileName; | ||
FileContent = fileContent; | ||
} | ||
|
||
public string FileLocation { get; set; } | ||
public string FileEncoding { get; set; } | ||
[JsonPropertyName("certkey")] | ||
public string CertKey { get; set; } | ||
|
||
[JsonPropertyName("cert")] | ||
public string PublicKey { get; set; } | ||
|
||
[JsonPropertyName("key")] | ||
public string PrivateKey { get; set; } | ||
|
||
[JsonPropertyName("password")] | ||
public bool Password { get; set; } | ||
|
||
[JsonPropertyName("fipskey")] | ||
public string FipsKey { get; set; } | ||
|
||
[JsonPropertyName("hsmkey")] | ||
public string HsmKey { get; set; } | ||
|
||
[JsonPropertyName("inform")] | ||
public string Inform { get; set; } | ||
|
||
[JsonPropertyName("passplain")] | ||
public string PassPlain { get; set; } | ||
|
||
[JsonPropertyName("expirymonitor")] | ||
public string ExpiryMonitor { get; set; } | ||
|
||
[JsonPropertyName("notificationperiod")] | ||
public double NotificationPeriod { get; set; } | ||
|
||
[JsonPropertyName("bundle")] | ||
public string Bundle { get; set; } | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/CoreLayer.Citrix.Adc.NitroData/Api/Configuration/Ssl/SslCertKeyConfiguration.cs
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,40 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CoreLayer.Citrix.Adc.NitroData.Api.Configuration.Ssl | ||
{ | ||
public class SslCertKeyConfiguration | ||
{ | ||
[JsonPropertyName("certkey")] | ||
public string CertKey { get; set; } | ||
|
||
[JsonPropertyName("cert")] | ||
public string PublicKey { get; set; } | ||
|
||
[JsonPropertyName("key")] | ||
public string PrivateKey { get; set; } | ||
|
||
[JsonPropertyName("password")] | ||
public bool Password { get; set; } | ||
|
||
[JsonPropertyName("fipskey")] | ||
public string FipsKey { get; set; } | ||
|
||
[JsonPropertyName("hsmkey")] | ||
public string HsmKey { get; set; } | ||
|
||
[JsonPropertyName("inform")] | ||
public string Inform { get; set; } | ||
|
||
[JsonPropertyName("passplain")] | ||
public string PassPlain { get; set; } | ||
|
||
[JsonPropertyName("expirymonitor")] | ||
public string ExpiryMonitor { get; set; } | ||
|
||
[JsonPropertyName("notificationperiod")] | ||
public double NotificationPeriod { get; set; } | ||
|
||
[JsonPropertyName("bundle")] | ||
public string Bundle { get; set; } | ||
} | ||
} |