-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
8 changed files
with
84 additions
and
44 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
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
31 changes: 2 additions & 29 deletions
31
src/VaultSharp/V1/AuthMethods/Token/Models/CallingTokenInfo.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,37 +1,10 @@ | ||
using Newtonsoft.Json; | ||
|
||
| ||
namespace VaultSharp.V1.AuthMethods.Token.Models | ||
{ | ||
/// <summary> | ||
/// Represents the information associated with the calling token. | ||
/// </summary> | ||
public class CallingTokenInfo : TokenAccessorInfo | ||
public class CallingTokenInfo : ClientTokenInfo | ||
{ | ||
/// <summary> | ||
/// Gets or sets the accessor. | ||
/// </summary> | ||
/// <value> | ||
/// The accessor. | ||
/// </value> | ||
[JsonProperty("accessor")] | ||
public string Accessor { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the explicit maximum time to live. | ||
/// </summary> | ||
/// <value> | ||
/// The explicit maximum time to live. | ||
/// </value> | ||
[JsonProperty("explicit_max_ttl")] | ||
public int ExplicitMaximumTimeToLive { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether this <see cref="CallingTokenInfo"/> is renewable. | ||
/// </summary> | ||
/// <value> | ||
/// <c>true</c> if renewable; otherwise, <c>false</c>. | ||
/// </value> | ||
[JsonProperty("renewable")] | ||
public bool Renewable { get; set; } | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/VaultSharp/V1/AuthMethods/Token/Models/ClientTokenInfo.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,37 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace VaultSharp.V1.AuthMethods.Token.Models | ||
{ | ||
/// <summary> | ||
/// Represents the information associated with the client token. | ||
/// </summary> | ||
public class ClientTokenInfo : TokenAccessorInfo | ||
{ | ||
/// <summary> | ||
/// Gets or sets the accessor. | ||
/// </summary> | ||
/// <value> | ||
/// The accessor. | ||
/// </value> | ||
[JsonProperty("accessor")] | ||
public string Accessor { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the explicit maximum time to live. | ||
/// </summary> | ||
/// <value> | ||
/// The explicit maximum time to live. | ||
/// </value> | ||
[JsonProperty("explicit_max_ttl")] | ||
public int ExplicitMaximumTimeToLive { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether this <see cref="CallingTokenInfo"/> is renewable. | ||
/// </summary> | ||
/// <value> | ||
/// <c>true</c> if renewable; otherwise, <c>false</c>. | ||
/// </value> | ||
[JsonProperty("renewable")] | ||
public bool Renewable { 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