Class PlainMechanism
The PLAIN SASL authentication mechanism.
Inherited Members
Namespace: FastReport.Messaging.Authentication.Sasl
Assembly: FastReport.dll
Syntax
public class PlainMechanism : SaslMechanism
Constructors
PlainMechanism(String, String)
Initializes a new instance of the PlainMechanism class.
Declaration
public PlainMechanism(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | password | The user's password. |
Fields
MECHANISM_NAME
The mechanism name.
Declaration
public const string MECHANISM_NAME = "PLAIN"
Field Value
Type | Description |
---|---|
System.String |
Methods
ComputeResponse(Byte[])
Computes the client response for server challenge.
Declaration
protected override byte[] ComputeResponse(byte[] challenge)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | challenge | The challenge from server. Usually empty for PLAIN mechanism. |
Returns
Type | Description |
---|---|
System.Byte[] | The response from client. |