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.153 -- Release Build+cfa0f66eec3b78014206cf98a152ef9e72791f21
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