C# Class TripleSoftware.Sasl.Mechanism.ASaslMechanism

Abstract class for use by sasl mechanisms
Inheritance: TripleSoftware.Sasl.ISaslMechanism
Datei anzeigen Open project: rckoenes/Sasl.NET

Public Methods

Method Description
AddTry ( ) : void

Increase the number of tries

GenerateString ( int length ) : string

Generate a random string

GetResponse ( ) : string

Responce of the sasl class to the challenge

GetResponse ( string Challenge ) : string

Responce of the sasl class to the challenge

Protected Methods

Method Description
AddQuotes ( string s ) : string

Adds " to the begining and end of the string

HexToString ( byte buf ) : string

Converts all bytes in the Array to a string representation.

Private Methods

Method Description
Parse ( string challenge ) : void

parse the fileds form the decripted challenge

Method Details

AddQuotes() protected static method

Adds " to the begining and end of the string
protected static AddQuotes ( string s ) : string
s string
return string

AddTry() public method

Increase the number of tries
public AddTry ( ) : void
return void

GenerateString() public static method

Generate a random string
public static GenerateString ( int length ) : string
length int Length of the string
return string

GetResponse() public abstract method

Responce of the sasl class to the challenge
public abstract GetResponse ( ) : string
return string

GetResponse() public abstract method

Responce of the sasl class to the challenge
public abstract GetResponse ( string Challenge ) : string
Challenge string Server authentication Challenge
return string

HexToString() protected static method

Converts all bytes in the Array to a string representation.
protected static HexToString ( byte buf ) : string
buf byte
return string