C# 클래스 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.
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddUser() 공개 메소드

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

AddUser() 공개 메소드

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

Load() 공개 메소드

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

Save() 공개 메소드

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

TryGetToken() 공개 메소드

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.
리턴 bool