C# Class GSF.Security.Authentication.IntegratedSecurityUserCredentials

Provides simple password based authentication that uses Secure Remote Password.
It is safe to store the user's credential on the server. This is a zero knowledge password proof, meaning if this database is compromised, a brute force attack is the only way to reveal the password.
Exibir arquivo Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Public Methods

Method Description
AddUser ( string username ) : void

Adds the specified user to the credentials database.

AddUser ( string username, System.Guid userToken ) : void

Adds the specified user to the credentials database.

Load ( Stream stream ) : void

Loads from the supplied stream.

Save ( Stream stream ) : void

Saves to the supplied stream.

TryGetToken ( IIdentity identity, System.Guid &token ) : bool

Gets if the user exists in the database

Method Details

AddUser() public method

Adds the specified user to the credentials database.
public AddUser ( string username ) : void
username string
return void

AddUser() public method

Adds the specified user to the credentials database.
public AddUser ( string username, System.Guid userToken ) : void
username string
userToken System.Guid
return void

Load() public method

Loads from the supplied stream.
public Load ( Stream stream ) : void
stream Stream
return void

Save() public method

Saves to the supplied stream.
public Save ( Stream stream ) : void
stream Stream
return void

TryGetToken() public method

Gets if the user exists in the database
public TryGetToken ( IIdentity identity, System.Guid &token ) : bool
identity IIdentity the identity to check
token System.Guid The token to extract for the user.
return bool