Redigera

Dela via


UserNameSecurityTokenProvider(String, String) Constructor

Definition

Initializes a new instance of the UserNameSecurityTokenProvider class using the specified username and password.

public:
 UserNameSecurityTokenProvider(System::String ^ userName, System::String ^ password);
public UserNameSecurityTokenProvider (string userName, string password);
new System.IdentityModel.Selectors.UserNameSecurityTokenProvider : string * string -> System.IdentityModel.Selectors.UserNameSecurityTokenProvider
Public Sub New (userName As String, password As String)

Parameters

userName
String

The username to get UserNameSecurityToken security token for.

password
String

The password of the user to get a UserNameSecurityToken security token for.

Remarks

The GetTokenCore method gets a token based on the specified username and password.

Applies to