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.173 -- Release Build+298e1c238b074757f82f41812034645402a162ed
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