7 types derived from X509Extension
System.Security.Cryptography (7)
System\Security\Cryptography\X509Certificates\X509AuthorityInformationAccessExtension.cs (1)
14public sealed class X509AuthorityInformationAccessExtension : X509Extension
System\Security\Cryptography\X509Certificates\X509AuthorityKeyIdentifierExtension.cs (1)
16public sealed class X509AuthorityKeyIdentifierExtension : X509Extension
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
9public sealed class X509BasicConstraintsExtension : X509Extension
System\Security\Cryptography\X509Certificates\X509EnhancedKeyUsageExtension.cs (1)
8public sealed class X509EnhancedKeyUsageExtension : X509Extension
System\Security\Cryptography\X509Certificates\X509KeyUsageExtension.cs (1)
9public sealed class X509KeyUsageExtension : X509Extension
System\Security\Cryptography\X509Certificates\X509SubjectAlternativeNameExtension.cs (1)
12public sealed class X509SubjectAlternativeNameExtension : X509Extension
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (1)
10public sealed class X509SubjectKeyIdentifierExtension : X509Extension
16 instantiations of X509Extension
dotnet-dev-certs (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
444X509Extension x509Extension = new X509Extension(Oid, x509ExtensionBytes, true);
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
137X509Extension x509Extension = new X509Extension(Oid, x509ExtensionBytes, true);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
System.Security.Cryptography (4)
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (1)
242X509Extension ext = new X509Extension(
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
113return new X509Extension(Oids.CrlDistributionPointsOid, encoded, critical);
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (1)
518extensions[i] = new X509Extension(oid, extData, critical);
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
82return new X509Extension(Oids.SubjectAltName, encoded, critical);
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
46X509Extension extension = new X509Extension(
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
184X509Extension extension = new X509Extension(
Templates.Blazor.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
Templates.Mvc.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
Templates.Tests (1)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
680var aspNetHttpsExtension = new X509Extension(
155 references to X509Extension
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
59foreach (var extension in cert.Extensions)
dotnet-dev-certs (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
dotnet-svcutil-lib (3)
CmdCredentialsProvider.cs (1)
89foreach (X509Extension extension in certificate.Extensions)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
301foreach (X509Extension ext in cert.Extensions) 444X509Extension x509Extension = new X509Extension(Oid, x509ExtensionBytes, true);
InMemory.FunctionalTests (8)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (8)
80private X509Extension _cdpExtension; 81private X509Extension _aiaExtension; 201private void RebuildRootWithRevocation(X509Extension cdpExtension, X509Extension aiaExtension) 212foreach (X509Extension ext in _cert.Extensions) 265foreach (X509Extension extension in extensions) 737private static X509Extension CreateAiaExtension(string certLocation, string ocspStem) 755private static X509Extension CreateCdpExtension(string cdp)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (8)
CertificateManagerTests.cs (8)
67httpsCertificate.Extensions.OfType<X509Extension>(), 75httpsCertificate.Extensions.OfType<X509Extension>(), 81httpsCertificate.Extensions.OfType<X509Extension>(), 89httpsCertificate.Extensions.OfType<X509Extension>(), 95httpsCertificate.Extensions.OfType<X509Extension>(), 305foreach (var extension in httpsCertificate.Extensions) 475firstCertificate.Extensions.OfType<X509Extension>(), 481secondCertificate.Extensions.OfType<X509Extension>(),
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (2)
35foreach (X509Extension ext in cert.Extensions) 137X509Extension x509Extension = new X509Extension(Oid, x509ExtensionBytes, true);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
HttpsTests.cs (1)
306foreach (var extension in cert.Extensions)
Microsoft.AspNetCore.Server.Kestrel.Core (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (8)
80private X509Extension _cdpExtension; 81private X509Extension _aiaExtension; 201private void RebuildRootWithRevocation(X509Extension cdpExtension, X509Extension aiaExtension) 212foreach (X509Extension ext in _cert.Extensions) 265foreach (X509Extension extension in extensions) 737private static X509Extension CreateAiaExtension(string certLocation, string ocspStem) 755private static X509Extension CreateCdpExtension(string cdp)
netstandard (1)
netstandard.cs (1)
1968[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Extension))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
876[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Extension))]
System.Net.Http (1)
src\libraries\Common\src\System\Net\Security\CertificateHelper.cs (1)
66foreach (X509Extension extension in cert.Extensions)
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
216foreach (X509Extension ext in TargetCertificate.Extensions)
System.Security.Cryptography (49)
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
10public X509ExtensionAsn(X509Extension extension)
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (3)
35public Collection<X509Extension> CertificateExtensions { get; } = new Collection<X509Extension>(); 854foreach (X509Extension extension in CertificateExtensions)
System\Security\Cryptography\X509Certificates\CertificateRequest.Load.cs (2)
242X509Extension ext = new X509Extension( 247X509Extension? rich =
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.CdpExtension.cs (1)
44public static X509Extension BuildCrlDistributionPointExtension(
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (1)
55foreach (X509Extension extension in certificate.Extensions)
System\Security\Cryptography\X509Certificates\ICertificatePal.cs (1)
29IEnumerable<X509Extension> Extensions { get; }
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (7)
154X509Extension? ext = FindExtension(cert, Oids.EnrollCertTypeExtension); 200X509Extension? ext = FindExtension(cert, Oids.EnhancedKeyUsage); 230X509Extension? ext = FindExtension(cert, Oids.CertPolicies); 254X509Extension? ext = FindExtension(cert, Oids.KeyUsage); 277X509Extension? ext = FindExtension(cert, Oids.SubjectKeyIdentifier); 314private static X509Extension? FindExtension(X509Certificate2 cert, string extensionOid) 321foreach (X509Extension ext in cert.Extensions)
System\Security\Cryptography\X509Certificates\OpenSslX509CertificateReader.cs (3)
490public IEnumerable<X509Extension> Extensions 496X509Extension[] extensions = new X509Extension[extensionCount];
System\Security\Cryptography\X509Certificates\Pkcs9ExtensionRequest.cs (3)
12internal Pkcs9ExtensionRequest(IEnumerable<X509Extension> extensions) 17private static byte[] EncodeAttribute(IEnumerable<X509Extension> extensions) 25foreach (X509Extension e in extensions)
System\Security\Cryptography\X509Certificates\SubjectAlternativeNameBuilder.cs (1)
68public X509Extension Build(bool critical = false)
System\Security\Cryptography\X509Certificates\X509BasicConstraintsExtension.cs (1)
80/// will have the <see cref="X509Extension.Critical"/> property set to <see langword="true" />.
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (9)
221foreach (X509Extension extension in Pal.Extensions) 223X509Extension? customExtension = CreateCustomExtensionIfAny(extension.Oid!); 610foreach (X509Extension extension in extensions) 1281X509Extension? rawSAN = null; 1283foreach (X509Extension extension in Pal.Extensions) 1300Debug.Assert(rawSAN.GetType() == typeof(X509Extension)); 1493private static X509Extension? CreateCustomExtensionIfAny(Oid oid) => 1496internal static X509Extension? CreateCustomExtensionIfAny(string? oidValue) => 1512foreach (X509Extension extension in certificate.Extensions)
System\Security\Cryptography\X509Certificates\X509Extension.cs (4)
26/// Initializes a new instance of the <see cref="X509Extension"/> class. 51/// Initializes a new instance of the <see cref="X509Extension"/> class. 82X509Extension? extension = asnEncodedData as X509Extension;
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (10)
16public sealed class X509ExtensionCollection : ICollection, IEnumerable<X509Extension> 37public X509Extension this[int index] 50public X509Extension? this[string oid] 55foreach (X509Extension extension in _list) 64public int Add(X509Extension extension) 72public void CopyTo(X509Extension[] array, int index) 105IEnumerator<X509Extension> IEnumerable<X509Extension>.GetEnumerator() => GetEnumerator(); 107private readonly List<X509Extension> _list = new List<X509Extension>();
System\Security\Cryptography\X509Certificates\X509ExtensionEnumerator.cs (2)
9public sealed class X509ExtensionEnumerator : IEnumerator, IEnumerator<X509Extension> 17public X509Extension Current
System.Security.Cryptography.Pkcs (5)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
37X509Extension extension =
src\libraries\Common\src\System\Security\Cryptography\Asn1\X509ExtensionAsn.manual.cs (1)
10public X509ExtensionAsn(X509Extension extension)
System\Security\Cryptography\Pkcs\Rfc3161TimestampRequest.cs (1)
46X509Extension extension = new X509Extension(
System\Security\Cryptography\Pkcs\Rfc3161TimestampTokenInfo.cs (1)
184X509Extension extension = new X509Extension(
System\Security\Cryptography\Pkcs\SignerInfo.cs (1)
725foreach (X509Extension ext in certificate.Extensions)
System.Security.Cryptography.X509Certificates (1)
System.Security.Cryptography.X509Certificates.cs (1)
32[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.X509Certificates.X509Extension))]
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedXml.cs (1)
344foreach (X509Extension extension in certificate.Extensions)
Templates.Blazor.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
Templates.Blazor.WebAssembly.Auth.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
Templates.Blazor.WebAssembly.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
Templates.Mvc.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)
Templates.Tests (8)
src\Shared\CertificateGeneration\CertificateManager.cs (8)
71foreach (var extension in certificate.Extensions.OfType<X509Extension>()) 147certificate.Extensions.OfType<X509Extension>() 152var byteArray = c.Extensions.OfType<X509Extension>() 649var extensions = new List<X509Extension>(); 680var aspNetHttpsExtension = new X509Extension( 774IEnumerable<X509Extension> extensions, 781foreach (var extension in extensions)