UserNamePasswordTokenProvider Class

Contains username and password used by the token provider for validating.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.ServiceBus. . :: . .TokenProvider
    Microsoft.ServiceBus..::..UserNamePasswordTokenProvider

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

Syntax

'Declaration
Public NotInheritable Class UserNamePasswordTokenProvider _
    Inherits TokenProvider
'Usage
Dim instance As UserNamePasswordTokenProvider
public sealed class UserNamePasswordTokenProvider : TokenProvider
public ref class UserNamePasswordTokenProvider sealed : public TokenProvider
[<SealedAttribute>]
type UserNamePasswordTokenProvider =  
    class
        inherit TokenProvider
    end
public final class UserNamePasswordTokenProvider extends TokenProvider

The UserNamePasswordTokenProvider type exposes the following members.

Constructors

  Name Description
Public method UserNamePasswordTokenProvider Initializes a new instance of the UserNamePasswordTokenProvider class.

Top

Properties

  Name Description
Public property CacheSize Gets or sets the size of the cache. (Inherited from TokenProvider.)
Public property CacheTokens Gets or sets a value that indicates whether new security tokens are being cached. (Inherited from TokenProvider.)
Public property IsWebTokenSupported Gets or sets a value that indicates whether web token is supported by this provider. (Inherited from TokenProvider.)
Public property Password Gets or sets the password for the token provider to validate.
Public property UserName Gets or sets the username for the token provider to validate.

Top

Methods

  Name Description
Public method BeginGetToken Begins an asynchronous operation to get a security token. (Inherited from TokenProvider.)
Public method BeginGetWebToken Begins an asynchronous operation to get a web token. (Inherited from TokenProvider.)
Public method Clear Clears the token provider. (Inherited from TokenProvider.)
Public method EndGetToken Completes an asynchronous operation to get a security token. (Inherited from TokenProvider.)
Public method EndGetWebToken Completes an asynchronous operation to get a web token. (Inherited from TokenProvider.)
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

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.

See Also

Reference

Microsoft.ServiceBus Namespace