ScramUserCredential Constructor
Adds the following user information to the server's user database
Namespace: SnapDB.Security.AuthenticationAssembly: 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
)
Public Sub New (
username As String,
password As String,
Optional iterations As Integer = 4000,
Optional saltSize As Integer = 32,
Optional hashMethod As HashMethod = HashMethod.Sha256
)
public:
ScramUserCredential(
String^ username,
String^ password,
int iterations = 4000,
int saltSize = 32,
HashMethod hashMethod = HashMethod::Sha256
)
SnapDB.Security.Authentication.ScramUserCredential = function(username, password, iterations, saltSize, hashMethod);
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.
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.