ScramUserCredential Constructor

Adds the following user information to the server's user database

Definition

Namespace: SnapDB.Security.Authentication
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public ScramUserCredential(
	string username,
	string password,
	int iterations = 4000,
	int saltSize = 32,
	HashMethod hashMethod = HashMethod.Sha256
)

Parameters

username  String
The username. Cannot be more than 100 characters.
password  String
The password. Cannot be more than 1024 characters.
iterations  Int32  (Optional)
The number of iterations.
saltSize  Int32  (Optional)
The size of the salt. Defaults to 32 bytes.
hashMethod  HashMethod  (Optional)
The hash method to use for authentication.

Remarks

Setting a large number of iterations will not impact how long it takes to negotiate a client on the server end. This is because the server precomputes the hash results. The client can optionally also precompute the results so negotiation can take milliseconds.

See Also