Share via


PromptForCredentials Method

Called by a Web service agent when the Web service requires authentication credentials.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Function PromptForCredentials ( _
    url As String, _
    negotiatedAuthMethod As String _
) As NetworkCredential
'Usage
Dim instance As IPromptForCredentials
Dim url As String
Dim negotiatedAuthMethod As String
Dim returnValue As NetworkCredential

returnValue = instance.PromptForCredentials(url, _
    negotiatedAuthMethod)
NetworkCredential PromptForCredentials(
    string url,
    string negotiatedAuthMethod
)
NetworkCredential^ PromptForCredentials(
    String^ url, 
    String^ negotiatedAuthMethod
)
function PromptForCredentials(
    url : String, 
    negotiatedAuthMethod : String
) : NetworkCredential

Parameters

  • url
    Type: System..::.String
    The URL of the Web service for which credentials are being requested.
  • negotiatedAuthMethod
    Type: System..::.String
    The negotiated authentication method (one of negotiate, NTLM, or Kerberos for Windows Authentication, otherwise Basic or Digest).

Return Value

Type: System.Net..::.NetworkCredential
A NetworkCredential with credentials for password-based authentication schemes

Remarks

Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.

Permissions

See Also

Reference

IPromptForCredentials Interface

IPromptForCredentials Members

Microsoft.CommerceServer Namespace