Files
linux-packaging-mono/mcs/class/referencesource/System/net/System/Net/ICredentialsByHost.cs
Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

44 lines
1.4 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="ICredentials.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Net {
//using System;
//using System.Net;
using System.Runtime.InteropServices;
//
// This is an extensible interface that authenticators
// must implement to support credential lookup.
// During execution of the protocol, if authentication
// information is needed the GetCredential function will
// be called with the host and realm information.
//
/// <devdoc>
/// <para>Provides the base authentication interface for Web client authentication.</para>
/// </devdoc>
public interface ICredentialsByHost {
/// <devdoc>
/// <para>
/// Returns a NetworkCredential object that
/// is associated with the supplied host, realm, and authentication type.
/// </para>
/// </devdoc>
//
// CONVENTION:
// returns null if no information is available
// for the specified host&realm
//
NetworkCredential GetCredential(string host, int port, string authenticationType);
} // interface ICredentials
} // namespace System.Net