< Summary

Information
Class: Ice.SSL.ConnectionInfo
Assembly: Ice
File(s): /_/csharp/src/Ice/SSL/ConnectionInfo.cs
Tag: 125_37167941578
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 37
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 1
Fully covered methods: 1
Total methods: 1
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/_/csharp/src/Ice/SSL/ConnectionInfo.cs

#LineLine coverage
 1// Copyright (c) ZeroC, Inc.
 2
 3#nullable enable
 4
 5using System.Security.Cryptography.X509Certificates;
 6
 7namespace Ice.SSL;
 8
 9/// <summary>
 10/// Provides access to the connection details of an SSL connection.
 11/// </summary>
 12public sealed class ConnectionInfo : Ice.ConnectionInfo
 13{
 14    /// <summary>
 15    /// The negotiated cipher suite.
 16    /// </summary>
 17    public readonly string cipher;
 18
 19    /// <summary>
 20    /// The peer's certificate, in a single-element array; empty when the peer did not provide a certificate.
 21    /// </summary>
 22    public readonly X509Certificate2[] certs;
 23
 24    /// <summary>
 25    /// The certificate verification status. This field is always <see langword="true" />: a connection whose
 26    /// certificate verification fails is aborted during the SSL handshake.
 27    /// </summary>
 28    public readonly bool verified;
 29
 30    internal ConnectionInfo(Ice.ConnectionInfo underlying, string cipher, X509Certificate2[] certs, bool verified)
 131        : base(underlying)
 32    {
 133        this.cipher = cipher;
 134        this.certs = certs;
 135        this.verified = verified;
 136    }
 37}