< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.IdentityModel.Tokens.EmptySecurityKeyIdentifierClause
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/EmptySecurityKeyIdentifierClause.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 41
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor()100%110%
.ctor(...)100%110%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/EmptySecurityKeyIdentifierClause.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4namespace CoreWCF.IdentityModel.Tokens
 5{
 6    /// <summary>
 7    /// Represents an empty SecurityKeyClause.  This class is used when an 'encrypted data element' or ' signature eleme
 8    /// not contain a 'key info element' that is used to describe the key required to decrypt the data or check the sign
 9    /// </summary>
 10    public class EmptySecurityKeyIdentifierClause : SecurityKeyIdentifierClause
 11    {
 12
 13        /// <summary>
 14        /// Creates an instance of <see cref="EmptySecurityKeyIdentifierClause"/>
 15        /// </summary>
 16        /// <remarks>This constructor assumes that the user knows how to resolve the key required without any context.</
 17        public EmptySecurityKeyIdentifierClause()
 018            : this( null )
 19        {
 020        }
 21
 22        /// <summary>
 23        /// Creates an instance of <see cref="EmptySecurityKeyIdentifierClause"/>
 24        /// </summary>
 25        /// <param name="context">Used to provide a hint when there is a need resolve an empty clause to a particular ke
 26        /// In the case of Saml11 and Saml2 tokens that have signatures without KeyInfo,
 27        /// this clause will contain the assertion that is currently being processed.</param>
 28        public EmptySecurityKeyIdentifierClause( object context )
 029            : base( typeof( EmptySecurityKeyIdentifierClause ).ToString() )
 30        {
 031            Context = context;
 032        }
 33
 34        /// <summary>
 35        /// Used to provide a hint when there is a need to resolve to a particular key.
 36        /// In the case of Saml11 and Saml2 tokens that have signatures without KeyInfo,
 37        /// this will contain the assertion that is currently being processed.
 38        /// </summary>
 039        public object Context { get; }
 40    }
 41}