Click or drag to resize

CertificatePolicyChecker Class

Certificate checker that validates remote certificates based on certificate policies associated with each certificate.
Inheritance Hierarchy
SystemObject
  GSF.Net.SecurityCertificatePolicyChecker

Namespace: GSF.Net.Security
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public class CertificatePolicyChecker : ICertificateChecker
View Source

The CertificatePolicyChecker type exposes the following members.

Constructors
 NameDescription
Public methodCertificatePolicyChecker Creates a new instance of the CertificatePolicyChecker class.
Top
Properties
 NameDescription
Public propertyDefaultCertificatePolicy Gets the default certificate policy used to validate certificates that do not have their own certificate policy.
Public propertyReasonForFailure Gets the reason why the remote certificate validation failed, or null if certificate validation did not fail.
Top
Methods
 NameDescription
Public methodDistrust Removes the given certificate from the list of trusted certificates.
Public methodDistrustAll Removes all certificates from the list of trusted certificates.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTrustedCertificate Searches the list of trusted certificates for a certificate that matches the given remote certificate.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTrust(X509Certificate) Trusts the given certificate, using the default policy for validation.
Public methodTrust(X509Certificate, CertificatePolicy) Trusts the given certificate, using the given policy for validation.
Public methodValidateRemoteCertificate Verifies the remote certificate used for authentication.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also