// Token: 0x06002AF6 RID: 10998 RVA: 0x0009F85C File Offset: 0x0009DA5C private void ParseCertificate() { lock (this) { if (this.m_element != null) { string text = this.m_element.Attribute("X509Certificate"); this.m_certificate = ((text == null) ? null : new X509Certificate(Hex.DecodeHexString(text))); PublisherMembershipCondition.CheckCertificate(this.m_certificate); this.m_element = null; } } }
private void ParseCertificate() { lock (this) { if (this.m_element == null) { return; } string local_2 = this.m_element.Attribute("X509Certificate"); this.m_certificate = local_2 == null ? (X509Certificate)null : new X509Certificate(Hex.DecodeHexString(local_2)); PublisherMembershipCondition.CheckCertificate(this.m_certificate); this.m_element = (SecurityElement)null; } }
/// <summary>使用确定成员身份的 Authenticode X.509v3 证书初始化 <see cref="T:System.Security.Policy.PublisherMembershipCondition" /> 类的新实例。</summary> /// <param name="certificate">一个 <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate" />,它包含软件发行者的公钥。</param> /// <exception cref="T:System.ArgumentNullException"> /// <paramref name="certificate" /> 参数为 null。</exception> public PublisherMembershipCondition(X509Certificate certificate) { PublisherMembershipCondition.CheckCertificate(certificate); this.m_certificate = new X509Certificate(certificate); }