36 references to HasPrivateKey
System (5)
net\System\Net\_SecureChannel.cs (3)
326
if (certEx.
HasPrivateKey
)
354
if (collectionEx.Count > 0 && collectionEx[0].
HasPrivateKey
)
365
if (collectionEx.Count > 0 && collectionEx[0].
HasPrivateKey
)
security\system\security\cryptography\x509\x509certificate2.cs (2)
781
if (!this.
HasPrivateKey
)
1238
if (!
HasPrivateKey
)
System.Core (8)
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (4)
26
if (!certificate.
HasPrivateKey
|| !IsECDsa(certificate)) { return null; }
147
if (certificate.
HasPrivateKey
)
186
Debug.Assert(!certificate.
HasPrivateKey
);
187
Debug.Assert(newCert.
HasPrivateKey
);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (4)
66
if (!certificate.
HasPrivateKey
|| !IsRSA(certificate))
101
if (certificate.
HasPrivateKey
)
157
Debug.Assert(!certificate.
HasPrivateKey
);
158
Debug.Assert(newCert.
HasPrivateKey
);
System.Data (5)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (5)
482
if (!certificate.
HasPrivateKey
)
512
Debug.Assert(certificate.
HasPrivateKey
, "Attempting to encrypt with cert without privatekey");
528
Debug.Assert(certificate.
HasPrivateKey
, "Attempting to decrypt with cert without privatekey");
544
Debug.Assert(certificate.
HasPrivateKey
, "Attempting to sign with cert without privatekey");
571
Debug.Assert(certificate.
HasPrivateKey
, "Attempting to sign with cert without privatekey");
System.IdentityModel (3)
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (1)
71
if (certificate.
HasPrivateKey
&& this.privateKey == null)
System\IdentityModel\Tokens\X509SigningCredentials.cs (1)
123
if (!this.certificate.
HasPrivateKey
)
System\IdentityModel\X509Util.cs (1)
28
if (!certificate.
HasPrivateKey
)
System.Security (3)
system\security\cryptography\pkcs\pkcsutils.cs (1)
533
if (certificate.
HasPrivateKey
&& certificate.NotBefore <= DateTime.Now && certificate.NotAfter >= DateTime.Now) {
system\security\cryptography\pkcs\signedpkcs7.cs (1)
188
if (!signer.Certificate.
HasPrivateKey
)
system\security\cryptography\pkcs\signerinfo.cs (1)
162
if (!signer.Certificate.
HasPrivateKey
)
System.ServiceModel (3)
System\ServiceModel\Security\SecurityUtils.cs (2)
875
if (certificate.
HasPrivateKey
)
1908
if (!certificate.
HasPrivateKey
)
System\ServiceModel\Security\TlsSspiNegotiation.cs (1)
552
hasPrivateKey = certificate.
HasPrivateKey
&& SecurityUtils.CanReadPrivateKey(certificate);
WindowsBase (3)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
797
if (signer.
HasPrivateKey
)
1198
Invariant.Assert(!signer.
HasPrivateKey
);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
912
if (!collection[i].
HasPrivateKey
)
WsatConfig (3)
Configuration\WsatConfiguration.cs (3)
376
if (!identity.
HasPrivateKey
)
647
if (cert != null && cert.
HasPrivateKey
)
701
if (cert != null && cert.
HasPrivateKey
)
WsatUI (3)
Configuration\WsatConfiguration.cs (3)
376
if (!identity.
HasPrivateKey
)
647
if (cert != null && cert.
HasPrivateKey
)
701
if (cert != null && cert.
HasPrivateKey
)