Gemstone Common Library
Show/Hide TOC

# CertificatePolicyChecker Class

Certificate checker that validates remote certificates based on certificate policies associated with each certificate.

## Definition

Namespace: Gemstone.Net.Security
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
C#
View Source Request Example

    public class CertificatePolicyChecker : ICertificateChecker

VB
View Source Request Example

    Public Class CertificatePolicyChecker
    	Implements ICertificateChecker

C++
View Source Request Example

    public ref class CertificatePolicyChecker : ICertificateChecker

JavaScript
View Source Request Example

    Gemstone.Net.Security.CertificatePolicyChecker = function();

    Type.createClass(
    	'Gemstone.Net.Security.CertificatePolicyChecker',
    	null,
    	Gemstone.Net.Security.ICertificateChecker);

Inheritance
  Object CertificatePolicyChecker

Implements
  ICertificateChecker

## Constructors

CertificatePolicyChecker | Creates a new instance of the CertificatePolicyChecker class.

## Properties

DefaultCertificatePolicy | Gets the default certificate policy used to validate certificates that do not have their own certificate policy.
ReasonForFailure | Gets the reason why the remote certificate validation failed, or null if certificate validation did not fail.

## Methods

Distrust | Removes the given certificate from the list of trusted certificates.
DistrustAll | Removes all certificates from the list of trusted certificates.
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
GetHashCode | Serves as the default hash function. (Inherited from Object)
GetTrustedCertificate | Searches the list of trusted certificates for a certificate that matches the given remote certificate.
GetType | Gets the Type of the current instance. (Inherited from Object)
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
ToString | Returns a string that represents the current object. (Inherited from Object)
Trust(X509Certificate) | Trusts the given certificate, using the default policy for validation.
Trust(X509Certificate, CertificatePolicy) | Trusts the given certificate, using the given policy for validation.
ValidateRemoteCertificate | Verifies the remote certificate used for authentication.

## Extension Methods

GetEnumValueOrDefault | Gets the enumeration constant for value, if defined in the enumeration, or a default value. (Defined by EnumExtensions)
GetEnumValueOrDefaultT | Gets the enumeration constant for this value, if defined in the enumeration, or a default value. (Defined by EnumExtensions)

## See Also

#### Reference

Gemstone.Net.Security Namespace