Saves a username and password hash combination to the authentication list.
[Visual Basic]Overloads Public Sub SaveUserHash( _
ByVal username As String, _
ByVal passHash As String, _
ByVal saveData As Boolean _
)
[C#]
public void SaveUserHash(
string username,
string passHash,
bool saveData
);
Parameters
- username
- The username to add.
- passHash
- The password hash to add.
- saveData
- True if the data has to be written to the XML file, false otherwise.
Remarks
If the user already exists in the collection, the old password hash will be changed to the new one.
The username 'users' is invalid because it is used internally to store the usernames.
The password will not be hashed before it is stored in the authentication list. The user must make sure it is a valid MD5 hash.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentNullException | username is null -or- passHash is null. |
System.ArgumentException | The specified username is invalid. |
See Also
ProxyConfig Class | ProxyConfig Members | Org.Mentalis.Proxy Namespace | ProxyConfig.SaveUserHash Overload List