Gemstone Common Library
Show/Hide TOC

# CertificatePolicyCheckerTrust(X509Certificate, CertificatePolicy) Method

Trusts the given certificate, using the given policy for validation.

## Definition

Namespace: Gemstone.Net.Security
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
C#
View Source Request Example

    public void Trust(
    	X509Certificate certificate,
    	CertificatePolicy? policy
    )

VB
View Source Request Example

    Public Sub Trust (
    	certificate As X509Certificate,
    	policy As CertificatePolicy
    )

C++
View Source Request Example

    public:
    void Trust(
    	X509Certificate^ certificate,
    	CertificatePolicy^ policy
    )

JavaScript
View Source Request Example

    function Trust(certificate, policy);

#### Parameters

certificate X509Certificate
  The certificate to be trusted.
policy CertificatePolicy
  The policy by which to evaluate the certificate.

## See Also

#### Reference

CertificatePolicyChecker Class
Trust Overload
Gemstone.Net.Security Namespace