2 writes to certificate
System.IdentityModel (2)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
37
this.
certificate
= clone ? new X509Certificate2(certificate) : certificate;
49
this.
certificate
= elements[index].Certificate;
21 references to certificate
System.IdentityModel (21)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (21)
78
this.identity = new X509Identity(this.
certificate
, false, false);
89
this.expirationTime = this.
certificate
.NotAfter.ToUniversalTime();
105
chain.Build(
certificate
);
116
else if (StringComparer.OrdinalIgnoreCase.Equals(this.
certificate
.SubjectName.Name, this.
certificate
.IssuerName.Name))
119
this.issuer = new X500DistinguishedNameClaimSet(this.
certificate
.IssuerName);
131
return this.
certificate
;
161
SecurityUtils.ResetCertificate(this.
certificate
);
168
byte[] thumbprint = this.
certificate
.GetCertHash();
173
string value = this.
certificate
.SubjectName.Name;
175
claims.Add(Claim.CreateX500DistinguishedNameClaim(this.
certificate
.SubjectName));
177
claims.AddRange(GetDnsClaims(this.
certificate
));
179
value = this.
certificate
.GetNameInfo(X509NameType.SimpleName, false);
183
value = this.
certificate
.GetNameInfo(X509NameType.EmailName, false);
187
value = this.
certificate
.GetNameInfo(X509NameType.UpnName, false);
191
value = this.
certificate
.GetNameInfo(X509NameType.UrlName, false);
198
rsa = this.
certificate
.PublicKey.Key as RSA;
202
rsa = CngLightup.GetRSAPublicKey(this.
certificate
);
243
yield return new Claim(ClaimTypes.Thumbprint, this.
certificate
.GetCertHash(), Rights.Identity);
247
yield return new Claim(ClaimTypes.Thumbprint, this.
certificate
.GetCertHash(), Rights.PossessProperty);
254
foreach (var claim in GetDnsClaims(
certificate
))