IChannelCredentials.cs 1.7 KB

12345678910111213141516171819202122232425262728
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. //-----------------------------------------------------------------------------
  4. namespace System.ServiceModel.ComIntegration
  5. {
  6. using System;
  7. using System.ServiceModel.Channels;
  8. using System.Runtime.InteropServices;
  9. using System.Collections.Generic;
  10. using System.ServiceModel;
  11. [ComImport,
  12. Guid("181b448c-c17c-4b17-ac6d-06699b93198f"),
  13. InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
  14. public interface IChannelCredentials
  15. {
  16. void SetWindowsCredential(string domain, string userName, string password, int impersonationLevel, bool allowNtlm);
  17. void SetUserNameCredential(string userName, string password);
  18. void SetClientCertificateFromStore(string storeLocation, string storeName, string findType, object findValue);
  19. void SetClientCertificateFromStoreByName(string subjectName, string storeLocation, string storeName);
  20. void SetClientCertificateFromFile(string fileName, string password, string keyStorageFlags);
  21. void SetDefaultServiceCertificateFromStore(string storeLocation, string storeName, string findType, object findValue);
  22. void SetDefaultServiceCertificateFromStoreByName(string subjectName, string storeLocation, string storeName);
  23. void SetDefaultServiceCertificateFromFile(string fileName, string password, string keyStorageFlags);
  24. void SetServiceCertificateAuthentication(string storeLocation, string revocationMode, string certificationValidationMode);
  25. void SetIssuedToken(string localIssuerAddres, string localIssuerBindingType, string localIssuerBinding);
  26. }
  27. }