< Summary

Class:Microsoft.Azure.KeyVault.Models.CertificateContentType
Assembly:Microsoft.Azure.KeyVault
File(s):C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\CertificateBundle.cs
Covered lines:0
Uncovered lines:1
Coverable lines:1
Total lines:62
Line coverage:0% (0 of 1)
Covered branches:0
Total branches:0

Metrics

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

File(s)

C:\Git\azure-sdk-for-net\sdk\keyvault\Microsoft.Azure.KeyVault\src\Customized\CertificateBundle.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
 5namespace Microsoft.Azure.KeyVault.Models
 6{
 7    public partial class CertificateBundle
 8    {
 9        /// <summary>
 10        /// This is the Id of the secret backing the certificate.
 11        /// </summary>
 12        public SecretIdentifier SecretIdentifier
 13        {
 14            get
 15            {
 16                if (!string.IsNullOrWhiteSpace(Sid))
 17                    return new SecretIdentifier(Sid);
 18                else
 19                    return null;
 20            }
 21        }
 22
 23        /// <summary>
 24        /// This is the Id of the key backing the certificate.
 25        /// </summary>
 26        public KeyIdentifier KeyIdentifier
 27        {
 28            get
 29            {
 30                if (!string.IsNullOrWhiteSpace(Kid))
 31                    return new KeyIdentifier(Kid);
 32                else
 33                    return null;
 34            }
 35        }
 36
 37        /// <summary>
 38        /// This is the Id of the certificate.
 39        /// </summary>
 40        public CertificateIdentifier CertificateIdentifier
 41        {
 42            get
 43            {
 44                if (!string.IsNullOrWhiteSpace(Id))
 45                    return new CertificateIdentifier(Id);
 46                else
 47                    return null;
 48            }
 49        }
 50    }
 51
 52    /// <summary>
 53    /// Media types relevant to certificates.
 54    /// </summary>
 55    public static class CertificateContentType
 56    {
 57        public const string Pfx = "application/x-pkcs12";
 58        public const string Pem = "application/x-pem-file";
 59
 060        public static readonly string[] AllTypes = { Pfx, Pem };
 61    }
 62}

Methods/Properties

.cctor()