C# Class GSF.Security.Authentication.ScramClient

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

Public Methods

Method Description
AuthenticateAsClient ( Stream stream, byte additionalChallenge = null ) : bool
ScramClient ( string username, string password ) : System.IO

Creates a new set of client credentials.

Private Methods

Method Description
ComputeClientSignature ( byte authMessage ) : byte[]
ComputeServerSignature ( byte authMessage ) : byte[]
SetServerValues ( HashMethod hashMethod, byte salt, int iterations ) : void

Sets the server parameters and regenerates the salted password if the salt values have changed.

Method Details

AuthenticateAsClient() public method

public AuthenticateAsClient ( Stream stream, byte additionalChallenge = null ) : bool
stream System.IO.Stream
additionalChallenge byte
return bool

ScramClient() public method

Creates a new set of client credentials.
public ScramClient ( string username, string password ) : System.IO
username string
password string
return System.IO