< Summary

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

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault.WebKey\src\JsonWebKeyEncryptionAlgorithms.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//
 5
 6namespace Microsoft.Azure.KeyVault.WebKey
 7{
 8    /// <summary>
 9    /// Supported JsonWebKey algorithms
 10    /// </summary>
 11    public static class JsonWebKeyEncryptionAlgorithm
 12    {
 13        public const string RSAOAEP = "RSA-OAEP";
 14        public const string RSA15   = "RSA1_5";
 15
 16        // RSAES OAEP using SHA-256 and MGF1 with SHA-256
 17        // defined https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms
 18        public const string RSAOAEP256 = "RSA-OAEP-256";
 19
 20        /// <summary>
 21        /// All algorithms names. Use clone to avoid FxCop violation
 22        /// </summary>
 23        public static string[] AllAlgorithms
 24        {
 025            get { return (string[])_allAlgorithms.Clone(); }
 26        }
 27
 028        private static readonly string[] _allAlgorithms = { RSA15, RSAOAEP, RSAOAEP256 };
 29    }
 30 }

Methods/Properties

get_AllAlgorithms()
.cctor()