Muokkaa

Jaa


XpsDigitalSignature.VerifyCertificate Method

Definition

Verifies an X.509 certificate.

Overloads

VerifyCertificate()

Verifies the X.509 certificate embedded in the package.

VerifyCertificate(X509Certificate)

Verifies the specified X.509 certificate.

VerifyCertificate()

Verifies the X.509 certificate embedded in the package.

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

Returns

A bitwise combination of the enumeration values that specify the result of the verification attempt.

Attributes

Remarks

Your application will need to decide what flags are critical for verifying certificates.

Some certificate verifications may require Internet connectivity.

The X.509 certificate of the signer is embedded by the SignDigitally method when called with the embedCertificate parameter set to true.

See also

Applies to

VerifyCertificate(X509Certificate)

Verifies the specified X.509 certificate.

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

Parameters

certificate
X509Certificate

A certificate of authenticity.

Returns

A bitwise combination of the enumeration values that specify the result of the verification attempt.

Attributes

Remarks

Your application will need to decide what flags are critical for verifying certificates.

Some certificate verifications may require Internet connectivity.

See also

Applies to