1 type derived from X509Certificate
System (1)
security\system\security\cryptography\x509\x509certificate2.cs (1)
279public class X509Certificate2 : X509Certificate {
19 instantiations of X509Certificate
mscorlib (16)
system\reflection\module.cs (1)
1243return (data != null) ? new System.Security.Cryptography.X509Certificates.X509Certificate(data) : null;
system\security\cryptography\x509certificates\x509certificate.cs (2)
221return new X509Certificate(filename); 227return new X509Certificate(filename);
system\security\permissions\permissionattributes.cs (1)
962return new PublisherIdentityPermission( new X509Certificate( System.Security.Util.Hex.DecodeHexString( m_x509cert ) ) );
system\security\permissions\publisheridentitypermission.cs (6)
75m_certs[0] = new X509Certificate(value); 86return new X509Certificate(m_certs[0]); 129perm.m_certs[n] = (m_certs[n] == null ? null : new X509Certificate(m_certs[n])); 201alCerts.Add(new X509Certificate(certThis)); 273al.Add(new X509Certificate(System.Security.Util.Hex.DecodeHexString(elem))); 281al.Add(new X509Certificate(System.Security.Util.Hex.DecodeHexString(elem)));
system\security\policy\pefileevidencefactory.cs (1)
280return new Publisher(new X509Certificate(certificate));
system\security\policy\publisher.cs (1)
99get { return new X509Certificate(m_cert); }
system\security\policy\publishermembershipcondition.cs (4)
50m_certificate = new X509Certificate( certificate ); 73m_certificate = new X509Certificate( value ); 82return new X509Certificate( m_certificate ); 204m_certificate = elCert == null ? null : new X509Certificate( System.Security.Util.Hex.DecodeHexString( elCert ) );
System (3)
net\System\Net\SecureProtocols\SslStream.cs (1)
370return (X509Certificate)(m_RemoteCertificateOrBytes = new X509Certificate((byte[]) chkCertificateOrBytes));
net\System\Net\ServicePoint.cs (2)
846return (X509Certificate)(m_ServerCertificateOrBytes = new X509Certificate((byte[]) chkCert)); 868return (X509Certificate)(m_ClientCertificateOrBytes = new X509Certificate((byte[]) chkCert));
147 references to X509Certificate
mscorlib (43)
system\reflection\emit\modulebuilder.cs (1)
1126public override System.Security.Cryptography.X509Certificates.X509Certificate GetSignerCertificate()
system\reflection\module.cs (2)
557public virtual System.Security.Cryptography.X509Certificates.X509Certificate GetSignerCertificate() 1239public override System.Security.Cryptography.X509Certificates.X509Certificate GetSignerCertificate()
system\security\cryptography\x509certificates\x509certificate.cs (7)
198public X509Certificate (X509Certificate cert):this() { 220public static X509Certificate CreateFromCertFile (string filename) { 226public static X509Certificate CreateFromSignedFile (string filename) { 376if (!(obj is X509Certificate)) return false; 377X509Certificate other = (X509Certificate) obj; 382public virtual bool Equals (X509Certificate other) {
system\security\cryptography\x509certificates\x509utils.cs (2)
263if ((keyStorageFlags & X509Certificate.KeyStorageFlagsAll) != keyStorageFlags) 312internal static SafeCertStoreHandle ExportCertToMemoryStore(X509Certificate certificate) {
system\security\permissions\permissionattributes.cs (2)
966return new PublisherIdentityPermission( System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile( m_certFile ) ); 970return new PublisherIdentityPermission( System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromSignedFile( m_signedFile ) );
system\security\permissions\publisheridentitypermission.cs (20)
15using X509Certificate = System.Security.Cryptography.X509Certificates.X509Certificate; 32private X509Certificate[] m_certs; 57public PublisherIdentityPermission( X509Certificate certificate ) 68public X509Certificate Certificate 74m_certs = new X509Certificate[1]; 96private static void CheckCertificate( X509Certificate certificate ) 126perm.m_certs = new X509Certificate[this.m_certs.Length]; 155foreach(X509Certificate certThis in this.m_certs) 160foreach(X509Certificate certThat in that.m_certs) 196foreach(X509Certificate certThis in this.m_certs) 198foreach(X509Certificate certThat in that.m_certs) 207result.m_certs = (X509Certificate[])alCerts.ToArray(typeof(X509Certificate)); 237foreach(X509Certificate certThis in this.m_certs) 239foreach(X509Certificate certThat in that.m_certs) 242foreach(X509Certificate cert in alCerts) 254result.m_certs = (X509Certificate[])alCerts.ToArray(typeof(X509Certificate)); 285m_certs = (X509Certificate[])al.ToArray(typeof(X509Certificate));
system\security\policy\publisher.cs (5)
29private X509Certificate m_cert; 31public Publisher(X509Certificate cert) 56internal static bool PublicKeyEquals( X509Certificate cert1, X509Certificate cert2 ) 97public X509Certificate Certificate
system\security\policy\publishermembershipcondition.cs (4)
32private X509Certificate m_certificate; 47public PublisherMembershipCondition( X509Certificate certificate ) 53private static void CheckCertificate( X509Certificate certificate ) 68public X509Certificate Certificate
System (71)
net\System\Net\_SecureChannel.cs (11)
68private X509Certificate m_ServerCertificate; 69private X509Certificate m_SelectedClientCertificate; 88internal SecureChannel(string hostname, bool serverMode, SchProtocols protocolFlags, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, bool remoteCertRequired, bool checkCertName, 127internal X509Certificate LocalServerCertificate { 133internal X509Certificate LocalClientCertificate { 298X509Certificate2 EnsurePrivateKey(X509Certificate certificate) 311if (t != typeof(X509Certificate2) && t != typeof(X509Certificate)) 434static X509Certificate2 MakeEx(X509Certificate certificate) 549X509Certificate clientCertificate = null; // This is a candidate that can come from the user callback or be guessed when targeting a session restart 700clientCertificate = filteredCerts[i] as X509Certificate; 801X509Certificate localCertificate = null;
net\System\Net\_TLSstream.cs (1)
410public X509Certificate ClientCertificate {
net\System\Net\HttpWebResponse.cs (4)
57internal X509Certificate m_Certificate; 578m_Certificate = (X509Certificate)serializationInfo.GetValue("m_Certificate", typeof(X509Certificate)); 619serializationInfo.AddValue("m_Certificate", m_Certificate, typeof(X509Certificate));
net\System\Net\ICertificatePolicy.cs (1)
23bool CheckValidationResult(ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem);
net\System\Net\Internal.cs (4)
1390public SecureCredential(int version, X509Certificate certificate, SecureCredential.Flags flags, SchProtocols protocols, EncryptionPolicy policy) { 2007public bool Accept(X509Certificate Certificate, int CertificateProblem) { 2117internal bool CheckErrors(string hostName, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) 2186public bool CheckValidationResult(ServicePoint sp, X509Certificate cert, WebRequest request, int problem) {
net\System\Net\SecureProtocols\_SslState.cs (4)
127internal void ValidateCreateContext(bool isServer, string targetHost, SslProtocols enabledSslProtocols, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, bool remoteCertRequired, bool checkCertRevocationStatus) 132internal void ValidateCreateContext(bool isServer, string targetHost, SslProtocols enabledSslProtocols, X509Certificate serverCertificate, X509CertificateCollection clientCertificates, bool remoteCertRequired, bool checkCertRevocationStatus, bool checkCertName) 232internal X509Certificate LocalCertificate { 240internal X509Certificate InternalLocalCertificate {
net\System\Net\SecureProtocols\SslStream.cs (22)
52public delegate bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors); 55public delegate X509Certificate LocalCertificateSelectionCallback(object sender, string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers); 58internal delegate bool RemoteCertValidationCallback(string host, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors); 59internal delegate X509Certificate LocalCertSelectionCallback(string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers); 102private bool userCertValidationCallbackWrapper(string hostName, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) 116private X509Certificate userCertSelectionCallbackWrapper(string targetHost, X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers) 183public virtual void AuthenticateAsServer(X509Certificate serverCertificate) 188public virtual void AuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, 195public virtual void AuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, 203public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, AsyncCallback asyncCallback, object asyncState) 213public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, 222public virtual IAsyncResult BeginAuthenticateAsServer(X509Certificate serverCertificate, bool clientCertificateRequired, 282public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate) 288public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation) 294public virtual Task AuthenticateAsServerAsync(X509Certificate serverCertificate, bool clientCertificateRequired, SslProtocols enabledSslProtocols, bool checkCertificateRevocation) 358public virtual X509Certificate LocalCertificate { 364public virtual X509Certificate RemoteCertificate { 370return (X509Certificate)(m_RemoteCertificateOrBytes = new X509Certificate((byte[]) chkCertificateOrBytes)); 372return chkCertificateOrBytes as X509Certificate;
net\System\Net\ServicePoint.cs (9)
842public X509Certificate Certificate { 846return (X509Certificate)(m_ServerCertificateOrBytes = new X509Certificate((byte[]) chkCert)); 848return chkCert as X509Certificate; 851internal void UpdateServerCertificate(X509Certificate certificate) 864public X509Certificate ClientCertificate { 868return (X509Certificate)(m_ClientCertificateOrBytes = new X509Certificate((byte[]) chkCert)); 870return chkCert as X509Certificate; 873internal void UpdateClientCertificate(X509Certificate certificate) 1056private bool CertValidationCallback(string hostName, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) {
net\System\Net\X509CertificateCollection.cs (14)
22public X509CertificateCollection(X509Certificate[] value) { 26public X509Certificate this[int index] { 28return ((X509Certificate)(List[index])); 35public int Add(X509Certificate value) { 39public void AddRange(X509Certificate[] value) { 57public bool Contains(X509Certificate value) { 58foreach (X509Certificate cert in List) { 66public void CopyTo(X509Certificate[] array, int index) { 70public int IndexOf(X509Certificate value) { 74public void Insert(int index, X509Certificate value) { 82public void Remove(X509Certificate value) { 89foreach (X509Certificate cert in this) { 107public X509Certificate Current { 109return ((X509Certificate)(baseEnumerator.Current));
security\system\security\cryptography\x509\x509certificate2.cs (1)
411public X509Certificate2 (X509Certificate certificate) : base(certificate) {
System.Core (1)
System\Security\Cryptography\X509Certificates\X509Native.cs (1)
214internal static SafeCertContextHandle GetCertificateContext(X509Certificate certificate) {
System.IdentityModel (1)
System\IdentityModel\Tokens\X509RawDataKeyIdentifierClause.cs (1)
49static byte[] GetRawData(X509Certificate certificate)
System.Runtime.Remoting (1)
channels\http\httpclientchannel.cs (1)
658foreach (X509Certificate certificate in _certificates)
System.Security (8)
system\security\cryptography\xml\keyinfo.cs (4)
520public KeyInfoX509Data (X509Certificate cert) { 525public KeyInfoX509Data (X509Certificate cert, X509IncludeOption includeOption) { 577public void AddCertificate (X509Certificate certificate) { 694foreach(X509Certificate certificate in m_certificates) {
system\security\cryptography\xml\SignedXmlDebugLog.cs (4)
213X509Certificate certificate = key as X509Certificate; 713internal static void LogVerifyKeyUsage(SignedXml signedXml, X509Certificate certificate, X509KeyUsageExtension keyUsages) { 882internal static void LogVerifyX509Chain(SignedXml signedXml, X509Chain chain, X509Certificate certificate) {
System.ServiceModel (9)
System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
79X509Certificate certificate = request.ServicePoint.Certificate; 255bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
System\ServiceModel\Channels\HttpsChannelListener.cs (1)
249X509Certificate certificate = listenerContext.Request.GetClientCertificate();
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (4)
643bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain, 957static X509Certificate SelectClientCertificate(object sender, string targetHost, 958X509CertificateCollection localCertificates, X509Certificate remoteCertificate, string[] acceptableIssuers) 963bool ValidateRemoteCertificate(object sender, X509Certificate certificate, X509Chain chain,
System\ServiceModel\Channels\TransportSecurityHelpers.cs (2)
164static bool OnValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, 207static void ValidateServerCertificate(X509Certificate certificate, string thumbprint)
WindowsBase (13)
Base\System\IO\Packaging\PackageDigitalSignature.cs (2)
135public X509Certificate Signer 305public VerifyResult Verify(X509Certificate signingCertificate)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (11)
368X509Certificate certificate = PromptForSigningCertificate(ParentWindow); 380public PackageDigitalSignature Sign(IEnumerable<Uri> parts, X509Certificate certificate) 394public PackageDigitalSignature Sign(IEnumerable<Uri> parts, X509Certificate certificate, IEnumerable<PackageRelationshipSelector> relationshipSelectors) 411X509Certificate certificate, 466X509Certificate certificate, 611X509Certificate certificate = PromptForSigningCertificate(ParentWindow); 626public PackageDigitalSignature Countersign(X509Certificate certificate) 657public PackageDigitalSignature Countersign(X509Certificate certificate, IEnumerable<Uri> signatures) 835public static X509ChainStatusFlags VerifyCertificate(X509Certificate certificate) 892static internal X509Certificate PromptForSigningCertificate(IntPtr hwndParent) 992X509Certificate certificate,