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