2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-04 02:08:21 +00:00
This commit is contained in:
2024-06-22 03:50:54 +03:00
parent 8a30c92e19
commit 26794f08e7
32 changed files with 1508 additions and 595 deletions

View File

@@ -9,8 +9,8 @@
enum AuthenticationMethod
{
None,
Certificate,
Credentials,
Token,
None,
Credentials,
Token,
Certificate
}

View File

@@ -21,32 +21,28 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
import '../../Data/DC.dart';
import 'Authentication.dart';
import '../../Data/IntType.dart';
import '../../Data/KeyList.dart';
import 'AuthenticationMethod.dart';
import 'AuthenticationType.dart';
class Session
{
Authentication get localAuthentication => _localAuth;
Authentication get remoteAuthentication => _remoteAuth;
// public Source Source { get; }
DC? id;
//DateTime get creation => _creation;
//public DateTime Modification { get; }
DateTime creation = DateTime.now();
DateTime modification = DateTime.now();
final KeyList<String, dynamic> variables = new KeyList<String, dynamic>();
//KeyList<string, object> Variables { get; }
//IStore Store { get; }
Map<UInt8, dynamic> localHeaders = Map<UInt8, dynamic>();
Map<UInt8, dynamic> remoteHeaders = Map<UInt8, dynamic>();
//string id;
Authentication _localAuth, _remoteAuth;
AuthenticationMethod localMethod = AuthenticationMethod.None;
AuthenticationMethod remoteMethod = AuthenticationMethod.None;
Session(this._localAuth, this._remoteAuth)
{
}
AuthenticationType authenticationType = AuthenticationType.Host ;
String? authorizedAccount;
}