< Summary

Class:Microsoft.Azure.KeyVault.WebKey.JsonWebKeyType
Assembly:Microsoft.Azure.KeyVault.WebKey
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.WebKey\src\JsonWebKeyType.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:24
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_AllTypes()-100%100%
.cctor()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.WebKey\src\JsonWebKeyType.cs

#LineLine coverage
 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
 5using System.Collections.Generic;
 6
 7namespace 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
 220        public static IReadOnlyList<string> AllTypes => _allTypes;
 21
 222        private static readonly string[] _allTypes = {EllipticCurve, EllipticCurveHsm, Rsa, RsaHsm, Octet};
 23    }
 24}

Methods/Properties

get_AllTypes()
.cctor()