import '../../Core/AsyncReply.dart'; import '../../Data/DC.dart'; import '../../Net/Packets/IIPAuthPacketHashAlgorithm.dart'; import '../Authority/Session.dart'; import 'AuthorizationResults.dart'; abstract class IMembership { //public event ResourceEventHandler Authorization; AsyncReply userExists(String username, String domain); AsyncReply tokenExists(int tokenIndex, String domain); AsyncReply getPassword(String username, String domain); AsyncReply getToken(String tokenIndex, String domain); AsyncReply authorize(Session session); AsyncReply authorizePlain(Session session, int reference, value); AsyncReply authorizeHashed(Session session, int reference, int algorithm, DC value); AsyncReply authorizeEncrypted(Session session, int reference, int algorithm, DC value); AsyncReply login(Session session); AsyncReply logout(Session session); bool get guestsAllowed; }