PublisherMembershipCondition(X509Certificate) 构造函数
定义
使用确定成员身份的 Authenticode X.509v3 证书初始化 PublisherMembershipCondition 类的新实例。Initializes a new instance of the PublisherMembershipCondition class with the Authenticode X.509v3 certificate that determines membership.
public:
PublisherMembershipCondition(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
public PublisherMembershipCondition (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
new System.Security.Policy.PublisherMembershipCondition : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Policy.PublisherMembershipCondition
Public Sub New (certificate As X509Certificate)
参数
- certificate
- X509Certificate
一个 X509Certificate,它包含软件发行者的公钥。An X509Certificate that contains the software publisher's public key.
例外
certificate 参数为 null。The certificate parameter is null.
注解
如果代码由软件发行者使用与指定的公钥证书相对应的私钥进行签名,则代码将满足成员资格条件。Code satisfies the membership condition if it is signed by the software publisher with the private key that corresponds to the specified public key certificate.