Class SaslMechanism
The base abstarct class for all SASL mechanisms.
Namespace: FastReport.Messaging.Authentication.Sasl
Assembly: FastReport.dll
Syntax
public abstract class SaslMechanism
Constructors
SaslMechanism()
Initializes a new instance of the SaslMechanism class.
Declaration
public SaslMechanism()
SaslMechanism(String, String)
Initializes a new instance of the SaslMechanism class with specified parameters.
Declaration
public SaslMechanism(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | password | The user's password. |
Properties
Name
Gets or sets the name of mechanism.
Declaration
public string Name { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Password
Gets or sets the user's password.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
Gets or sets the username.
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ComputeResponse(Byte[])
Computes client response for server challenge.
Declaration
protected abstract byte[] ComputeResponse(byte[] challenge)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | challenge | The server challenge. |
Returns
Type | Description |
---|---|
System.Byte[] | The client response. |
GetResponse(Byte[])
Gets the client response for the server challenge.
Declaration
public byte[] GetResponse(byte[] challenge)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | challenge | Byte array containing server challenge. |
Returns
Type | Description |
---|---|
System.Byte[] | Byte array containing client response. |
GetResponse(String)
Gets the base64-encoded client response fo the server challenge.
Declaration
public string GetResponse(string challenge)
Parameters
Type | Name | Description |
---|---|---|
System.String | challenge | The base64-string containing server challenge. |
Returns
Type | Description |
---|---|
System.String | The base64-string containing client response. |