Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rekey backup apis - get backup and delete
supports the api equivalent of hashicorp/vault#907
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 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,29 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace VaultSharp.Backends.System.Models | ||
{ | ||
/// <summary> | ||
/// Represents the Rekey backup information. | ||
/// </summary> | ||
public class RekeyBackupInfo | ||
{ | ||
/// <summary> | ||
/// Gets or sets the nonce for the current rekey operation.. | ||
/// </summary> | ||
/// <value> | ||
/// The nonce. | ||
/// </value> | ||
[JsonProperty("nonce")] | ||
public string Nonce { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the map of PGP key fingerprint to hex-encoded PGP-encrypted key. | ||
/// </summary> | ||
/// <value> | ||
/// The map of PGP key fingerprint to hex-encoded PGP-encrypted key. | ||
/// </value> | ||
[JsonProperty("keys")] | ||
public Dictionary<string, string> PGPFingerprintToEncryptedKeyMap { 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