< Summary - CoreWCF Coverage — PR #1766

Information
Class: CoreWCF.IdentityModel.Claims.AuthenticationInformation
Assembly: CoreWCF.Primitives
File(s): /home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Claims/AuthenticationInformation.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 48
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%

File(s)

/home/runner/work/CoreWCF/CoreWCF/src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Claims/AuthenticationInformation.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
 4using System;
 5using System.Collections.ObjectModel;
 6using CoreWCF.IdentityModel.Tokens;
 7
 8namespace CoreWCF.IdentityModel.Claims
 9{
 10    /// <summary>
 11    /// The authentication information that an authority asserted when creating a token for a subject.
 12    /// </summary>
 13    public class AuthenticationInformation
 14    {
 15        /// <summary>
 16        /// Initializes a new instance of the <see cref="AuthenticationInformation"/> class.
 17        /// </summary>
 018        public AuthenticationInformation()
 19        {
 020            AuthorizationContexts = new Collection<AuthenticationContext>();
 021        }
 22
 23        /// <summary>
 24        /// Gets or sets the address of the authority that created the token.
 25        /// </summary>
 026        public string Address { get; set; }
 27
 28        /// <summary>
 29        /// Gets the <see cref="AuthorizationContext"/> used by the authenticating authority when issuing tokens.
 30        /// </summary>
 031        public Collection<AuthenticationContext> AuthorizationContexts { get; }
 32
 33        /// <summary>
 34        /// Gets or sets the DNS name of the authority that created the token.
 35        /// </summary>
 036        public string DnsName { get; set; }
 37
 38        /// <summary>
 39        /// Gets or sets the time that the session referred to in the session index MUST be considered ended.
 40        /// </summary>
 041        public DateTime? NotOnOrAfter { get; set; }
 42
 43        /// <summary>
 44        /// Gets or sets the session index that describes the session between the authority and the client.
 45        /// </summary>
 046        public string Session { get; set; }
 47    }
 48}