1 <Type Name="ICredentials" FullName="System.Net.ICredentials" FullNameSP="System_Net_ICredentials" Maintainer="ecma">
2 <TypeSignature Language="ILASM" Value=".class interface public abstract ICredentials" />
3 <TypeSignature Language="C#" Value="public interface ICredentials" />
4 <MemberOfLibrary>Networking</MemberOfLibrary>
6 <AssemblyName>System</AssemblyName>
7 <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
8 <AssemblyVersion>1.0.x.x</AssemblyVersion>
9 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
10 <AssemblyVersion>2.0.0.0</AssemblyVersion>
15 <para> Implemented by types that supply network credentials used to authenticate clients.</para>
18 <para>The <see cref="T:System.Net.ICredentials" /> interface defines the <see cref="M:System.Net.ICredentials.GetCredential(System.Uri,System.String)" /> method, which
19 is used to supply network credentials for client authentication.</para>
23 <Member MemberName="GetCredential">
24 <MemberSignature Language="ILASM" Value=".method public hidebysig virtual abstract class System.Net.NetworkCredential GetCredential(class System.Uri uri, string authType)" />
25 <MemberSignature Language="C#" Value="public System.Net.NetworkCredential GetCredential (Uri uri, string authType);" />
26 <MemberType>Method</MemberType>
28 <ReturnType>System.Net.NetworkCredential</ReturnType>
31 <Parameter Name="uri" Type="System.Uri" />
32 <Parameter Name="authType" Type="System.String" />
35 <param name="uri">A <see cref="T:System.Uri" /> representing the URI for which the client is providing authentication.</param>
36 <param name="authType">A <see cref="T:System.String" /> containing the type of authentication. This value is required to be identical to the <see cref="P:System.Net.IAuthenticationModule.AuthenticationType" qualify="true" /> of the authentication module that uses the credential returned by this method. </param>
38 <para>Returns a <see cref="T:System.Net.NetworkCredential" /> object that is associated with a Uniform Resource Identifier (URI) and authentication type.</para>
41 <para>A <see cref="T:System.Net.NetworkCredential" /> associated with the specified URI and authentication
42 type, or <see langword="null" /> if the credentials cannot be provided.</para>
46 <block subset="none" type="behaviors">As described above.</block>
49 <block subset="none" type="overrides">Implement this method to return
50 credentials information appropriate for the specified authentication
54 <block subset="none" type="usage">This method returns an object suitable for passing to the <see cref="M:System.Net.IAuthenticationModule.Authenticate(System.String,System.Net.WebRequest,System.Net.ICredentials)" /> method
55 of the authorization module registered for the specified authentication type.
56 For additional information, see <see cref="M:System.Net.AuthenticationManager.Register(System.Net.IAuthenticationModule)" />.</block>
60 <Excluded>0</Excluded>
62 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
63 <AssemblyVersion>2.0.0.0</AssemblyVersion>
67 <TypeExcluded>0</TypeExcluded>