| | | 1 | | namespace ArturRios.Heimdall.Query.Output; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// One credential in UC-54's listing. Never the secret, which is shown once by UC-53, and never |
| | | 5 | | /// its hash. |
| | | 6 | | /// </summary> |
| | | 7 | | public class ApplicationCredentialOutput |
| | | 8 | | { |
| | | 9 | | /// <summary>The credential's <c>PublicId</c> — UC-55's route value and the token's <c>credentialId</c>.</summary> |
| | 21 | 10 | | public Guid Id { get; set; } |
| | | 11 | | |
| | 16 | 12 | | public DateTime CreatedAt { get; set; } |
| | | 13 | | |
| | 16 | 14 | | public DateTime? ExpiresAt { get; set; } |
| | | 15 | | |
| | 17 | 16 | | public DateTime? RevokedAt { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary>When a token was last issued from it (UC-56), or <c>null</c> if never.</summary> |
| | 17 | 19 | | public DateTime? LastUsedAt { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary>Whether UC-56 would accept it now: not revoked and not expired.</summary> |
| | 21 | 22 | | public bool Live { get; set; } |
| | | 23 | | } |