AuthenticationModeHelper.cs 1.5 KB

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