C# Class GSF.Security.Authentication.SrpServerSession

Provides simple password based authentication that uses Secure Remote Password.
Afficher le fichier Open project: GridProtectionAlliance/openHistorian Class Usage Examples

Méthodes publiques

Свойство Type Description
SessionSecret byte[]

Méthodes publiques

Méthode Description
SrpServerSession ( SrpUserCredential user ) : System

Creates a new SrpServerSession that will authenticate a stream.

TryAuthenticate ( Stream stream, byte additionalChallenge ) : bool

Attempts to authenticate the provided stream.

Private Methods

Méthode Description
CreateSessionData ( byte sessionSecret, SrpUserCredential user ) : byte[]
ResumeTicket ( IDigest hash, Stream stream, byte additionalChallenge ) : bool
StandardAuthentication ( IDigest hash, Stream stream, byte additionalChallenge ) : bool
TryLoadTicket ( byte ticket, SrpUserCredential user, byte &sessionSecret ) : bool

Attempts to load the session resume ticket.

Method Details

SrpServerSession() public méthode

Creates a new SrpServerSession that will authenticate a stream.
public SrpServerSession ( SrpUserCredential user ) : System
user SrpUserCredential The user that will be authenticated.
Résultat System

TryAuthenticate() public méthode

Attempts to authenticate the provided stream.
public TryAuthenticate ( Stream stream, byte additionalChallenge ) : bool
stream Stream the stream to authenticate
additionalChallenge byte
Résultat bool

Property Details

SessionSecret public_oe property

The session secret that is used to generate keys.
public byte[] SessionSecret
Résultat byte[]