1 //------------------------------------------------------------------------------
2 // <copyright file="ICredentials.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //------------------------------------------------------------------------------
12 using System.Runtime.InteropServices;
15 // This is an extensible interface that authenticators
16 // must implement to support credential lookup.
17 // During execution of the protocol, if authentication
18 // information is needed the GetCredential function will
19 // be called with the host and realm information.
23 /// <para>Provides the base authentication interface for Web client authentication.</para>
25 public interface ICredentials {
28 /// Returns a NetworkCredential object that
29 /// is associated with the supplied host, realm, and authentication type.
35 // returns null if no information is available
36 // for the specified host&realm
38 NetworkCredential GetCredential(Uri uri, String authType);
40 } // interface ICredentials
43 } // namespace System.Net