//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace System.ServiceModel.Security
{
using System.Runtime.CompilerServices;
///
/// An enumeration that lists the ways of validating a certificate.
///
[TypeForwardedFrom( "System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" )]
public enum X509CertificateValidationMode
{
///
/// No validation of the certificate is performed.
///
None,
///
/// The certificate is valid if it is in the trusted people store.
///
PeerTrust,
///
/// The certificate is valid if the chain builds to a certification authority in the trusted root store.
///
ChainTrust,
///
/// The certificate is valid if it is in the trusted people store, or if the chain builds to a certification authority in the trusted root store.
///
PeerOrChainTrust,
///
/// The user must plug in a custom X509CertificateValidator to validate the certificate.
///
Custom
}
}