70 references to X509NameType
dotnet-svcutil-lib (17)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (9)
185value = _certificate.GetNameInfo(X509NameType.DnsName, false); 192value = _certificate.GetNameInfo(X509NameType.SimpleName, false); 196value = _certificate.GetNameInfo(X509NameType.UpnName, false); 204value = _certificate.GetNameInfo(X509NameType.UrlName, false); 271string value = _certificate.GetNameInfo(X509NameType.DnsName, false); 543value = _certificate.GetNameInfo(X509NameType.DnsName, false); 547value = _certificate.GetNameInfo(X509NameType.SimpleName, false); 551value = _certificate.GetNameInfo(X509NameType.EmailName, false); 555value = _certificate.GetNameInfo(X509NameType.UpnName, false);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (4)
298value = certificate.GetNameInfo(X509NameType.DnsName, false); 301value = certificate.GetNameInfo(X509NameType.SimpleName, false); 304value = certificate.GetNameInfo(X509NameType.EmailName, false); 307value = certificate.GetNameInfo(X509NameType.UpnName, false);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (4)
602value = certificate.GetNameInfo(X509NameType.DnsName, false); 605value = certificate.GetNameInfo(X509NameType.SimpleName, false); 608value = certificate.GetNameInfo(X509NameType.EmailName, false); 611value = certificate.GetNameInfo(X509NameType.UpnName, false);
Microsoft.AspNetCore.Authentication.Certificate (5)
CertificateAuthenticationHandler.cs (5)
273value = certificate.GetNameInfo(X509NameType.DnsName, false); 279value = certificate.GetNameInfo(X509NameType.SimpleName, false); 285value = certificate.GetNameInfo(X509NameType.EmailName, false); 291value = certificate.GetNameInfo(X509NameType.UpnName, false); 297value = certificate.GetNameInfo(X509NameType.UrlName, false);
Microsoft.AspNetCore.Authentication.Test (10)
CertificateTests.cs (10)
515if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false))) 521Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false), actual.First().Value); 525if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false))) 531Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false), actual.First().Value); 535if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false))) 541Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false), actual.First().Value); 545if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false))) 551Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false), actual.First().Value); 555if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false))) 561Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false), actual.First().Value);
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\AuthContextHelpers.cs (1)
47var commonName = clientCertificate.GetNameInfo(X509NameType.SimpleName, false);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
CertificateLoader.cs (1)
51if (certificate.GetNameInfo(X509NameType.SimpleName, forIssuer: false).Equals(subject, StringComparison.InvariantCultureIgnoreCase))
Microsoft.AspNetCore.Testing.Tests (1)
FakeCertificateFactoryTests.cs (1)
20Assert.Equal("localhost", certificate.GetNameInfo(X509NameType.DnsFromAlternativeName, false));
netstandard (1)
netstandard.cs (1)
1976[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509NameType))]
PresentationUI (3)
MS\Internal\Documents\DigitalSignatureProvider.cs (2)
156X509NameType.SimpleName, 513X509NameType.SimpleName,
MS\Internal\Documents\SigningDialog.cs (1)
170Certificate.GetNameInfo(X509NameType.SimpleName,
Security.TransportSecurity.IntegrationTests (4)
Tcp\ClientCredentialTypeTests.OSX.cs (4)
196value = certificate.GetNameInfo(X509NameType.DnsName, false); 199value = certificate.GetNameInfo(X509NameType.SimpleName, false); 202value = certificate.GetNameInfo(X509NameType.EmailName, false); 205value = certificate.GetNameInfo(X509NameType.UpnName, false);
System (1)
src\libraries\shims\System\ref\System.cs (1)
883[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509NameType))]
System.Security.Cryptography (11)
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (1)
37string GetNameInfo(X509NameType nameType, bool forIssuer);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
785public string GetNameInfo(X509NameType nameType, bool forIssuer)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (9)
430public string GetNameInfo(X509NameType nameType, bool forIssuer) 455string simpleName = GetNameInfo(X509NameType.SimpleName, false); 463string emailName = GetNameInfo(X509NameType.EmailName, false); 471string upnName = GetNameInfo(X509NameType.UpnName, false); 479string dnsName = GetNameInfo(X509NameType.DnsName, false); 494simpleName = GetNameInfo(X509NameType.SimpleName, true); 502emailName = GetNameInfo(X509NameType.EmailName, true); 510upnName = GetNameInfo(X509NameType.UpnName, true); 518dnsName = GetNameInfo(X509NameType.DnsName, true);
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
40[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509NameType))]
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (1)
236keyName = "\"" + certificate2.GetNameInfo(X509NameType.SimpleName, false) + "\"";
System.ServiceModel.Primitives (13)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (9)
201value = _certificate.GetNameInfo(X509NameType.DnsName, false); 208value = _certificate.GetNameInfo(X509NameType.SimpleName, false); 214value = _certificate.GetNameInfo(X509NameType.UpnName, false); 220value = _certificate.GetNameInfo(X509NameType.UrlName, false); 291string value = _certificate.GetNameInfo(X509NameType.DnsName, false); 581value = _certificate.GetNameInfo(X509NameType.DnsName, false); 587value = _certificate.GetNameInfo(X509NameType.SimpleName, false); 593value = _certificate.GetNameInfo(X509NameType.EmailName, false); 599value = _certificate.GetNameInfo(X509NameType.UpnName, false);
System\IdentityModel\SecurityUtils.cs (4)
223value = certificate.GetNameInfo(X509NameType.DnsName, false); 226value = certificate.GetNameInfo(X509NameType.SimpleName, false); 229value = certificate.GetNameInfo(X509NameType.EmailName, false); 232value = certificate.GetNameInfo(X509NameType.UpnName, false);