UserNamePasswordServiceCredential Class
This class is used to configure how the service authenticates users that use user name/password authentication and to configure the caching of logon tokens.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The UserNamePasswordServiceCredential type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CachedLogonTokenLifetime | Gets or sets the maximum length of time that a token is cached. |
![]() | CacheLogonTokens | Gets or sets a value that indicates whether logon tokens are cached. |
![]() | CustomUserNamePasswordValidator | Gets or sets a custom user name and password validator. |
![]() | IncludeWindowsGroups | Gets or sets a value that indicates whether Windows groups are included in the security context. |
![]() | MaxCachedLogonTokens | Gets or sets the maximum number of logon tokens to cache. |
![]() | MembershipProvider | Gets or sets the membership provider. |
![]() | UserNamePasswordValidationMode | Gets or sets the method of validating the user name and password. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
If none of the bindings used by a service is configured for user name/password-based authentication, the relevant properties for this class are ignored. These properties include the CustomUserNamePasswordValidator, IncludeWindowsGroups, MembershipProvider, and UserNamePasswordValidationMode properties.
If none of the bindings used by a service is configured to use Windows authentication for user name/password, the settings related to caching of logon tokens are ignored. These settings include the CachedLogonTokenLifetime, CacheLogonTokens, and MaxCachedLogonTokens properties.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
