57 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)
259value = certificate.GetNameInfo(X509NameType.DnsName, false); 265value = certificate.GetNameInfo(X509NameType.SimpleName, false); 271value = certificate.GetNameInfo(X509NameType.EmailName, false); 277value = certificate.GetNameInfo(X509NameType.UpnName, false); 283value = certificate.GetNameInfo(X509NameType.UrlName, false);
Microsoft.AspNetCore.Authentication.Test (10)
CertificateTests.cs (10)
509if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false))) 515Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false), actual.First().Value); 519if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false))) 525Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false), actual.First().Value); 529if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false))) 535Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false), actual.First().Value); 539if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false))) 545Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false), actual.First().Value); 549if (!string.IsNullOrEmpty(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false))) 555Assert.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)
161X509NameType.SimpleName, 516X509NameType.SimpleName,
MS\Internal\Documents\SigningDialog.cs (1)
173Certificate.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)
34string GetNameInfo(X509NameType nameType, bool forIssuer);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
703public string GetNameInfo(X509NameType nameType, bool forIssuer)
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (9)
425public string GetNameInfo(X509NameType nameType, bool forIssuer) 450string simpleName = GetNameInfo(X509NameType.SimpleName, false); 458string emailName = GetNameInfo(X509NameType.EmailName, false); 466string upnName = GetNameInfo(X509NameType.UpnName, false); 474string dnsName = GetNameInfo(X509NameType.DnsName, false); 489simpleName = GetNameInfo(X509NameType.SimpleName, true); 497emailName = GetNameInfo(X509NameType.EmailName, true); 505upnName = GetNameInfo(X509NameType.UpnName, true); 513dnsName = 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) + "\"";