23#define RESIPROCATE_SUBSYSTEM Subsystem::REPRO
54 bool applyA1HashToPassword,
56 const Data& emailAddress,
57 const Data& passwordHashAlt)
63 if(applyA1HashToPassword)
79 rec.
email = emailAddress;
97 bool applyA1HashToPassword,
104 bool ret =
addUser(user, domain, realm, password, applyA1HashToPassword, fullName, emailAddress, passwordHashAlt);
105 if ( newkey != originalKey )
127 Data ret = user +
Data(SEPARATOR) + realm;
137 pb.
data(user, start);
140 pb.
data(domain, anchor);
resip::Data forwardAddress
resip::Data passwordHashAlt
virtual Key nextUserKey()
virtual Key firstUserKey()
virtual void eraseUser(const Key &key)
virtual resip::Data getUserAuthInfo(const Key &key) const
virtual bool addUser(const Key &key, const UserRecord &rec)
virtual UserRecord getUser(const Key &key) const
static Key buildKey(const resip::Data &user, const resip::Data &domain)
static void getUserAndDomainFromKey(const AbstractDb::Key &key, resip::Data &user, resip::Data &domain)
bool addUser(const resip::Data &user, const resip::Data &domain, const resip::Data &realm, const resip::Data &password, bool applyA1HashToPassword, const resip::Data &fullName, const resip::Data &emailAddress, const resip::Data &passwordHashAlt=resip::Data::Empty)
UserStore(AbstractDb &db)
resip::Data getUserAuthInfo(const resip::Data &user, const resip::Data &realm) const
void eraseUser(const Key &key)
bool updateUser(const Key &originalKey, const resip::Data &user, const resip::Data &domain, const resip::Data &realm, const resip::Data &password, bool applyA1HashToPassword, const resip::Data &fullName, const resip::Data &emailAddress, const resip::Data &passwordHashAlt=resip::Data::Empty)
AbstractDb::UserRecord getUserInfo(const Key &key) const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
static const Data Empty
Constant that represents a zero-length data.
static Data createResipA1HashString(const Data &username, const Data &realm, const Data &password)
Provides string-parsing functionality with protection from buffer overflow.
CurrentPosition skipToEnd()
CurrentPosition position() const
CurrentPosition skipToOneOf(const char *cs)
CurrentPosition skipChar()
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
static const char * AT_SIGN
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;