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.
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

AddUser() public méthode

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

Load() public méthode

Loads from the supplied stream.
public Load ( Stream stream ) : void
stream Stream
Résultat void

Save() public méthode

Saves to the supplied stream.
public Save ( Stream stream ) : void
stream Stream
Résultat void

TryGetToken() public méthode

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.
Résultat bool