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.160 -- Release Build+19b74ac03cedad8575bb1ceb00051318b7421d0d
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