FormsAuthenticationCredentials Class [IIS 7 and higher]
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 |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |
See Also
Reference
ClientCertificateMappingAuthenticationSection Class [IIS 7 and higher]
DigestAuthenticationSection Class [IIS 7 and higher]
EmbeddedObject Class [IIS 7 and higher]
FormsAuthenticationConfiguration Class [IIS 7 and higher]
IisClientCertificateMappingAuthenticationSection Class [IIS 7 and higher]
PassportAuthentication Class [IIS 7 and higher]
FormsAuthPasswordFormat