Share via


CredentialContext Class

Represents the security credentials for a Web service and the Web service client that are associated with a SoapContext.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim credentialContext1 As CredentialContext

Syntax

'Declaration
Public Class CredentialContext
public class CredentialContext
public ref class CredentialContext
public class CredentialContext
public class CredentialContext

Remarks

Use the SetCredentials to set the Web service or Web service client's credentials for a policy in code. For client credentials that should not be set in a policy file, such as a user name and password, the recommended method is to set the client's credentials in code. This applies to the <usernameOverTransportSecurity> Element, and <usernameForCertificateSecurity> Element turnkey security assertions. For more details about setting the Web service's credentials in a policy file and the client credentials in code, see How to: Secure a Client Using Mixed Policy and Code.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Services3.CredentialContext

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

CredentialContext Members
Microsoft.Web.Services3 Namespace