XpsDigitalSignature.VerifyCertificate 方法

定义

验证 X.509 证书。

重载

VerifyCertificate()

验证包中嵌入的 X.509 证书。

VerifyCertificate(X509Certificate)

验证指定的 X.509 证书。

VerifyCertificate()

验证包中嵌入的 X.509 证书。

public:
 System::Security::Cryptography::X509Certificates::X509ChainStatusFlags VerifyCertificate();
[System.Security.SecurityCritical]
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate ();
public System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate ();
[<System.Security.SecurityCritical>]
member this.VerifyCertificate : unit -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
member this.VerifyCertificate : unit -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
Public Function VerifyCertificate () As X509ChainStatusFlags

返回

X509ChainStatusFlags

枚举值的按位组合,这些枚举值指定验证尝试的结果。

属性

注解

应用程序需要确定哪些标志对于验证证书至关重要。

某些证书验证可能需要 Internet 连接。

使用参数设置为 true 调用的方法embedCertificate嵌入SignDigitally了签名者的 X.509 证书。

另请参阅

适用于

VerifyCertificate(X509Certificate)

验证指定的 X.509 证书。

public:
 static System::Security::Cryptography::X509Certificates::X509ChainStatusFlags VerifyCertificate(System::Security::Cryptography::X509Certificates::X509Certificate ^ certificate);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
public static System.Security.Cryptography.X509Certificates.X509ChainStatusFlags VerifyCertificate (System.Security.Cryptography.X509Certificates.X509Certificate certificate);
[<System.Security.SecurityCritical>]
static member VerifyCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
static member VerifyCertificate : System.Security.Cryptography.X509Certificates.X509Certificate -> System.Security.Cryptography.X509Certificates.X509ChainStatusFlags
Public Shared Function VerifyCertificate (certificate As X509Certificate) As X509ChainStatusFlags

参数

certificate
X509Certificate

真品证书。

返回

X509ChainStatusFlags

枚举值的按位组合,这些枚举值指定验证尝试的结果。

属性

注解

应用程序需要确定哪些标志对于验证证书至关重要。

某些证书验证可能需要 Internet 连接。

另请参阅

适用于