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

An individual server side user credential
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Iterations int
Salt byte[]
ServerEncryptionkey byte[]
ServerHMACKey byte[]
ServerKeyName System.Guid
SrpStrength SrpStrength
UserName string
UsernameBytes byte[]
Verification byte[]
VerificationInteger Org.BouncyCastle.Math.BigInteger

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

Метод Описание
Load ( ) : void
Save ( ) : void
SrpUserCredential ( string username, byte verification, byte salt, int iterations, SrpStrength srpStrength ) : System

Creates user credentials

SrpUserCredential ( string username, string password, SrpStrength strength = SrpStrength.Bits1024, int saltSize = 32, int iterations = 4000 ) : System

Creates a user credential from the provided data.

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

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

public Load ( ) : void
Результат void

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

public Save ( ) : void
Результат void

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

Creates user credentials
public SrpUserCredential ( string username, byte verification, byte salt, int iterations, SrpStrength srpStrength ) : System
username string
verification byte
salt byte
iterations int
srpStrength SrpStrength
Результат System

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

Creates a user credential from the provided data.
public SrpUserCredential ( string username, string password, SrpStrength strength = SrpStrength.Bits1024, int saltSize = 32, int iterations = 4000 ) : System
username string
password string
strength SrpStrength
saltSize int
iterations int
Результат System

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

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

The number of SHA512 iterations using PBKDF2
public int Iterations
Результат int

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

The salt used to compute the password bytes (x)
public byte[] Salt
Результат byte[]

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

Session Resume Encryption Key
public byte[] ServerEncryptionkey
Результат byte[]

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

Session Resume HMAC key
public byte[] ServerHMACKey
Результат byte[]

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

Session Resume Key Name
public Guid,System ServerKeyName
Результат System.Guid

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

The bit strength of the SRP algorithm.
public SrpStrength SrpStrength
Результат SrpStrength

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

The normalized name of the user
public string UserName
Результат string

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

public byte[] UsernameBytes
Результат byte[]

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

The Srp server verification bytes. (Computed as g^x % N)
public byte[] Verification
Результат byte[]

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

Verification as a BigInteger.
public BigInteger,Org.BouncyCastle.Math VerificationInteger
Результат Org.BouncyCastle.Math.BigInteger