C# Class GSF.Security.Authentication.SrpServerSession

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

Public Properties

Property Type Description
SessionSecret byte[]

Public Methods

Method 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

Method 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 method

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

TryAuthenticate() public method

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

Property Details

SessionSecret public_oe property

The session secret that is used to generate keys.
public byte[] SessionSecret
return byte[]