| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 3 | | // license information. |
| | 4 | |
|
| | 5 | | using System.Collections.Generic; |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.KeyVault.WebKey |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// Supported JsonWebKey key types (kty) |
| | 11 | | /// </summary> |
| | 12 | | public static class JsonWebKeyType |
| | 13 | | { |
| | 14 | | public const string EllipticCurve /******/ = "EC"; |
| | 15 | | public const string EllipticCurveHsm /***/ = "EC-HSM"; |
| | 16 | | public const string Rsa /****************/ = "RSA"; |
| | 17 | | public const string RsaHsm /*************/ = "RSA-HSM"; |
| | 18 | | public const string Octet /**************/ = "oct"; |
| | 19 | |
|
| 2 | 20 | | public static IReadOnlyList<string> AllTypes => _allTypes; |
| | 21 | |
|
| 2 | 22 | | private static readonly string[] _allTypes = {EllipticCurve, EllipticCurveHsm, Rsa, RsaHsm, Octet}; |
| | 23 | | } |
| | 24 | | } |