PackageDigitalSignature.Verify 方法

定义

根据 X.509 证书验证数字签名。

重载

Verify()

根据 X.509 证书验证数字签名。

Verify(X509Certificate)

根据指定的 X.509 证书验证数字签名。

Verify()

根据 X.509 证书验证数字签名。

public:
 System::IO::Packaging::VerifyResult Verify();
public System.IO.Packaging.VerifyResult Verify ();
member this.Verify : unit -> System.IO.Packaging.VerifyResult
Public Function Verify () As VerifyResult

返回

如果验证成功,则为 Success;否则为标识问题的 VerifyResult 值之一。

例外

数字 Signature 已被删除。

注解

此方法根据 中存储 Package的嵌入式 X.509 证书验证签名。

另请参阅

适用于

Verify(X509Certificate)

根据指定的 X.509 证书验证数字签名。

public:
 System::IO::Packaging::VerifyResult Verify(System::Security::Cryptography::X509Certificates::X509Certificate ^ signingCertificate);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate signingCertificate);
public System.IO.Packaging.VerifyResult Verify (System.Security.Cryptography.X509Certificates.X509Certificate signingCertificate);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
member this.Verify : System.Security.Cryptography.X509Certificates.X509Certificate -> System.IO.Packaging.VerifyResult
member this.Verify : System.Security.Cryptography.X509Certificates.X509Certificate -> System.IO.Packaging.VerifyResult
Public Function Verify (signingCertificate As X509Certificate) As VerifyResult

参数

signingCertificate
X509Certificate

验证数字签名所根据的签名者的 X.509 证书。

返回

如果验证成功,则为 Success;否则为标识问题的 VerifyResult 值之一。

属性

例外

数字 Signature 已被删除。

另请参阅

适用于