SrpUserCredential(String, String, SrpStrength, Int32, Int32) Constructor
Creates a user credential from the provided data.
Namespace: SnapDB.Security.AuthenticationAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public SrpUserCredential(
string username,
string password,
SrpStrength strength = SrpStrength.Bits1024,
int saltSize = 32,
int iterations = 4000
)
Public Sub New (
username As String,
password As String,
Optional strength As SrpStrength = SrpStrength.Bits1024,
Optional saltSize As Integer = 32,
Optional iterations As Integer = 4000
)
public:
SrpUserCredential(
String^ username,
String^ password,
SrpStrength strength = SrpStrength::Bits1024,
int saltSize = 32,
int iterations = 4000
)
SnapDB.Security.Authentication.SrpUserCredential = function(username, password, strength, saltSize, iterations);
Parameters
- username String
- The username for the user credential.
- password String
- The password for the user credential.
- strength SrpStrength (Optional)
- The strength of the SRP protocol (default is Bits1024).
- saltSize Int32 (Optional)
- The size of the salt in bytes (default is 32 bytes).
- iterations Int32 (Optional)
- The number of iterations for password hashing (default is 4000).