Share via


UsernameTokenProvider Class

Represents a security token provider for username and password security credentials.

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

Usage

'Usage
Dim usernameTokenProvider1 As New UsernameTokenProvider()

Syntax

'Declaration
Public Class UsernameTokenProvider
    Inherits TokenProvider(Of UsernameToken)
public class UsernameTokenProvider : TokenProvider<UsernameToken>
public ref class UsernameTokenProvider : TokenProvider<UsernameToken^>
public class UsernameTokenProvider extends TokenProvider<UsernameToken>
JScript does not support Generics.

Remarks

Use the UsernameTokenProvider class to provide user name and password security credentials for a policy. In a policy file, these credentials are placed in a <username> Element. When a policy file is not used, an instance of the UsernameTokenProvider class must be used. For more information about securing a Web service using a policy file, see How to: Secure a Web Service Using a Policy File. For more information about securing a Web service without a policy file, see How to: Secure a Web Service Without Using a Policy File.

Turnkey assertions that use the UsernameTokenProvider security token provider include <usernameOverTransportSecurity> Element and <usernameForCertificateSecurity> Element.

Inheritance Hierarchy

System.Object
   Microsoft.Web.Services3.Design.TokenProvider
    Microsoft.Web.Services3.Design.UsernameTokenProvider

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

UsernameTokenProvider Members
Microsoft.Web.Services3.Design Namespace

Other Resources

<username> Element
<usernameOverTransportSecurity> Element
<usernameForCertificateSecurity> Element
How to: Secure a Web Service Using a Policy File
How to: Secure a Web Service Without Using a Policy File
Turnkey Security Assertions