Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ISaslServerSide.cs
1using System.Threading.Tasks;
3
5{
9 public interface ISaslServerSide
10 {
14 string AuthId
15 {
16 get;
17 }
18
23 {
24 get;
25 }
26
31 {
32 get;
33 }
34
38 string Protocol
39 {
40 get;
41 }
42
46 object Tag
47 {
48 get;
49 set;
50 }
51
56 Task SetAccount(IAccount Account);
57
62 void ResetState(bool Authenticated);
63
69
75
81
87
92 Task<bool> SaslChallenge(string ChallengeBase64);
93
98 Task<bool> SaslSuccess(string ProofBase64);
99 }
100}
Represents a case-insensitive string.
Interface for SMTP user accounts.
Definition: IAccount.cs:11
Interface for server-side client connections.
Task< bool > SaslChallenge(string ChallengeBase64)
Returns a challenge to the client.
string RemoteEndPoint
Remote endpoint.
void SetUserIdentity(CaseInsensitiveString UserName)
Sets the identity of the user.
object Tag
Object tagged to the connection.
string Protocol
String representing protocol being used.
Task< bool > SaslErrorMalformedRequest()
Reports the SASL error: Malformed request
void ResetState(bool Authenticated)
Resets the state machine.
CaseInsensitiveString UserName
User name
Task< bool > SaslErrorAccountDisabled()
Reports the SASL error: Account disabled
Task< bool > SaslErrorNotAuthorized()
Reports the SASL error: Not Authorized
string AuthId
ID client claims to have
Task< bool > SaslSuccess(string ProofBase64)
Returns a sucess response to the client.
Task SetAccount(IAccount Account)
Sets the account for the connection.