|
1 | | -// Copyright {year} Keyfactor |
2 | | -// Licensed under the Apache License, Version 2.0 (the "License")\ |
| 1 | +// Copyright 2025 Keyfactor |
| 2 | +// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. |
| 3 | +// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 |
| 4 | +// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, |
| 5 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions |
| 6 | +// and limitations under the License. |
3 | 7 |
|
4 | 8 | using System; |
| 9 | +using System.Text.Json.Serialization; |
5 | 10 |
|
6 | 11 | namespace Keyfactor.Extensions.CAPlugin.HashicorpVault.APIProxy |
7 | 12 | { |
8 | | - internal class MetadataResponse |
| 13 | + public class MetadataResponse |
9 | 14 | { |
| 15 | + [JsonPropertyName("issuer_id")] |
10 | 16 | public string IssuerId { get; set; } |
11 | | - public DateTime Expiration { get; set; } |
| 17 | + |
| 18 | + [JsonPropertyName("expiration")] |
| 19 | + public DateTime? Expiration { get; set; } |
| 20 | + |
| 21 | + [JsonPropertyName("cert_metadata")] |
12 | 22 | public string CertMetadata { get; set; } |
| 23 | + |
| 24 | + [JsonPropertyName("role")] |
13 | 25 | public string Role { get; set; } |
| 26 | + |
| 27 | + [JsonPropertyName("serial_number")] |
14 | 28 | public string SerialNumber { get; set; } |
15 | 29 | } |
16 | 30 | } |
0 commit comments