1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
static class AuthenticationModeHelper
{
public static bool IsDefined(AuthenticationMode value)
{
return value == AuthenticationMode.AnonymousForCertificate
|| value == AuthenticationMode.AnonymousForSslNegotiated
|| value == AuthenticationMode.CertificateOverTransport
|| value == AuthenticationMode.IssuedToken
|| value == AuthenticationMode.IssuedTokenForCertificate
|| value == AuthenticationMode.IssuedTokenForSslNegotiated
|| value == AuthenticationMode.IssuedTokenOverTransport
|| value == AuthenticationMode.Kerberos
|| value == AuthenticationMode.KerberosOverTransport
|| value == AuthenticationMode.MutualCertificate
|| value == AuthenticationMode.MutualCertificateDuplex
|| value == AuthenticationMode.MutualSslNegotiated
|| value == AuthenticationMode.SecureConversation
|| value == AuthenticationMode.SspiNegotiated
|| value == AuthenticationMode.UserNameForCertificate
|| value == AuthenticationMode.UserNameForSslNegotiated
|| value == AuthenticationMode.UserNameOverTransport
|| value == AuthenticationMode.SspiNegotiatedOverTransport;
}
}
}
|