Returns a System.Net.NetworkCredential object that is associated with a Uniform Resource Identifier (URI) and authentication type.
- uri
- A Uri representing the URI for which the client is providing authentication.
- authType
- A string containing the type of authentication. This value is required to be identical to the IAuthenticationModule.AuthenticationType of the authentication module that uses the credential returned by this method.
A System.Net.NetworkCredential associated with the specified URI and authentication type, or null if the credentials cannot be provided.
Operation
As described above.Note to Inheritors
Implement this method to return credentials information appropriate for the specified authentication type.Usage
This method returns an object suitable for passing to the IAuthenticationModule.Authenticate(string, WebRequest, ICredentials) method of the authorization module registered for the specified authentication type. For additional information, see AuthenticationManager.Register(IAuthenticationModule).
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0