C# Класс GSF.Security.Authentication.SrpServerSession

Provides simple password based authentication that uses Secure Remote Password.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SessionSecret byte[]

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

SrpServerSession() публичный Метод

Creates a new SrpServerSession that will authenticate a stream.
public SrpServerSession ( SrpUserCredential user ) : System
user SrpUserCredential The user that will be authenticated.
Результат System

TryAuthenticate() публичный Метод

Attempts to authenticate the provided stream.
public TryAuthenticate ( Stream stream, byte additionalChallenge ) : bool
stream Stream the stream to authenticate
additionalChallenge byte
Результат bool

Описание свойств

SessionSecret публичное свойство

The session secret that is used to generate keys.
public byte[] SessionSecret
Результат byte[]