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.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
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