Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IAuthenticationMechanism.cs
1using System.Net.Security;
2using System.Threading.Tasks;
3
5{
9 public interface IAuthenticationMechanism
10 {
14 string Name
15 {
16 get;
17 }
18
23 {
24 get;
25 }
26
32 bool Allowed(SslStream SslStream);
33
39 Task Initialize();
40
48 Task<bool?> AuthenticationRequest(string Data, ISaslServerSide Connection, ISaslPersistenceLayer PersistenceLayer);
49
57 Task<bool?> ResponseRequest(string Data, ISaslServerSide Connection, ISaslPersistenceLayer PersistenceLayer);
58
66 Task<bool?> Authenticate(string UserName, string Password, ISaslClientSide Connection);
67 }
68}
Interface for authentication mechanisms.
Task< bool?> AuthenticationRequest(string Data, ISaslServerSide Connection, ISaslPersistenceLayer PersistenceLayer)
Authentication request has been made.
Task< bool?> Authenticate(string UserName, string Password, ISaslClientSide Connection)
Authenticates the user using the provided credentials.
bool Allowed(SslStream SslStream)
Checks if a mechanism is allowed during the current conditions.
Task Initialize()
Performs intitialization of the mechanism. Can be used to set static properties that will be used thr...
Task< bool?> ResponseRequest(string Data, ISaslServerSide Connection, ISaslPersistenceLayer PersistenceLayer)
Response request has been made.
int Weight
Weight of mechanisms. The higher the value, the more preferred.
Interface for client-side client connections.
Interface for XMPP Server persistence layers. The persistence layer should implement caching.
Interface for server-side client connections.