FormsAuthenticationCredentials Class
Configures user credentials for ASP.NET applications that use Forms authentication.
Syntax
class FormsAuthenticationCredentials : EmbeddedObject
Methods
This class contains no methods.
Properties
The following table lists the properties exposed by the FormsAuthenticationCredentials
class.
Name | Description |
---|---|
PasswordFormat |
A read/write sint32 value that defines the encryption format for storing passwords. The possible values are listed later in the Remarks section. |
Credentials |
An array of FormsAuthenticationUser values that specify user-name and password credentials. |
Subclasses
This class contains no subclasses.
Remarks
Instances of this class are contained in the Credentials
property of the FormsAuthenticationConfiguration class.
The following table lists the possible values for the PasswordFormat
property. The default is 1 (SHA1
).
Value | Keyword | Description |
---|---|---|
0 | Clear |
Specifies that passwords are not encrypted. This field is constant. |
1 | SHA1 |
Specifies that passwords are encrypted by using the SHA1 hash algorithm. This field is constant. |
2 | MD5 |
Specifies that passwords are encrypted by using the MD5 hash algorithm. This field is constant. |
Inheritance Hierarchy
FormsAuthenticationCredentials
Requirements
Type | Description |
---|---|
Client | - IIS 7.0 on Windows Vista - IIS 7.5 on Windows 7 - IIS 8.0 on Windows 8 - IIS 10.0 on Windows 10 |
Server | - IIS 7.0 on Windows Server 2008 - IIS 7.5 on Windows Server 2008 R2 - IIS 8.0 on Windows Server 2012 - IIS 8.5 on Windows Server 2012 R2 - IIS 10.0 on Windows Server 2016 |
Product | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF file | WebAdministration.mof |
See Also
System.Web.Configuration.FormsAuthPasswordFormat
ClientCertificateMappingAuthenticationSection Class
DigestAuthenticationSection Class
EmbeddedObject Class
FormsAuthenticationConfiguration Class
IisClientCertificateMappingAuthenticationSection Class
PassportAuthentication Class