-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
FirmwareCryptoKey.cs
61 lines (55 loc) · 2.79 KB
/
FirmwareCryptoKey.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.IotFirmwareDefense.Models
{
/// <summary> Crypto key properties. </summary>
public partial class FirmwareCryptoKey
{
/// <summary> Initializes a new instance of <see cref="FirmwareCryptoKey"/>. </summary>
internal FirmwareCryptoKey()
{
Usage = new ChangeTrackingList<string>();
FilePaths = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of <see cref="FirmwareCryptoKey"/>. </summary>
/// <param name="firmwareCryptoKeyId"> ID for the key. </param>
/// <param name="keyType"> Type of the key (public or private). </param>
/// <param name="keySize"> Size of the key in bits. </param>
/// <param name="keyAlgorithm"> Key algorithm name. </param>
/// <param name="usage"> Functions the key can fulfill. </param>
/// <param name="filePaths"> List of files paths for this key. </param>
/// <param name="pairedKey"> A matching paired key or certificate. </param>
/// <param name="isShortKeySize"> Indicates the key size is considered too small to be secure for the algorithm. </param>
internal FirmwareCryptoKey(string firmwareCryptoKeyId, string keyType, long? keySize, string keyAlgorithm, IReadOnlyList<string> usage, IReadOnlyList<string> filePaths, PairedKey pairedKey, IsShortKeySize? isShortKeySize)
{
FirmwareCryptoKeyId = firmwareCryptoKeyId;
KeyType = keyType;
KeySize = keySize;
KeyAlgorithm = keyAlgorithm;
Usage = usage;
FilePaths = filePaths;
PairedKey = pairedKey;
IsShortKeySize = isShortKeySize;
}
/// <summary> ID for the key. </summary>
public string FirmwareCryptoKeyId { get; }
/// <summary> Type of the key (public or private). </summary>
public string KeyType { get; }
/// <summary> Size of the key in bits. </summary>
public long? KeySize { get; }
/// <summary> Key algorithm name. </summary>
public string KeyAlgorithm { get; }
/// <summary> Functions the key can fulfill. </summary>
public IReadOnlyList<string> Usage { get; }
/// <summary> List of files paths for this key. </summary>
public IReadOnlyList<string> FilePaths { get; }
/// <summary> A matching paired key or certificate. </summary>
public PairedKey PairedKey { get; }
/// <summary> Indicates the key size is considered too small to be secure for the algorithm. </summary>
public IsShortKeySize? IsShortKeySize { get; }
}
}