A class which is responsible for authenticating a user. The authentication is usually done by verifying the username and password. An authenticator implementation might use external services for achieving that. It might make a call to an external databse, do a lookup to a json file with defined users or it might simply check the password against a hardcoded one.
More...
A class which is responsible for authenticating a user. The authentication is usually done by verifying the username and password. An authenticator implementation might use external services for achieving that. It might make a call to an external databse, do a lookup to a json file with defined users or it might simply check the password against a hardcoded one.
|
virtual ErrCode INTERFACE_FUNC | authenticate (IString *username, IString *password, IUser **userOut)=0 |
| Authenticate user using username and password. If authentication is successful, a User instance is returned. Otherwise an exception is thrown. More...
|
|
virtual ErrCode INTERFACE_FUNC | isAnonymousAllowed (Bool *allowedOut)=0 |
| Returns true if anonymous authentication is allowed. When anonymous authentication is enabled, user can connect to the server without providing username or password. More...
|
|
virtual ErrCode INTERFACE_FUNC | authenticateAnonymous (IUser **userOut)=0 |
| Authenticate as anonymous user. If anonymous authentication is not allowed, an exception is thrown. More...
|
|
virtual ErrCode INTERFACE_FUNC | findUser (IString *username, IUser **userOut)=0 |
| Find a user instance by its username. If no user with maching username is not found, null is returned. More...
|
|
virtual ErrCode INTERFACE_FUNC | borrowInterface (const IntfID &intfID, void **obj) const =0 |
| Returns another interface which is supported by the object without incrementing the reference count. More...
|
|
virtual ErrCode INTERFACE_FUNC | dispose ()=0 |
| Disposes all references held by the object. More...
|
|
virtual ErrCode INTERFACE_FUNC | getHashCode (SizeT *hashCode)=0 |
| Returns hash code of the object. More...
|
|
virtual ErrCode INTERFACE_FUNC | equals (IBaseObject *other, Bool *equal) const =0 |
| Compares object to another object for equality. More...
|
|
virtual ErrCode INTERFACE_FUNC | toString (CharPtr *str)=0 |
| Returns a string representation of the object. More...
|
|
virtual ErrCode INTERFACE_FUNC | queryInterface (const IntfID &intfID, void **obj)=0 |
| Returns another interface which is supported by the object and increments the reference count. More...
|
|
virtual int INTERFACE_FUNC | addRef ()=0 |
| Increments the reference count for an interface on an object. More...
|
|
virtual int INTERFACE_FUNC | releaseRef ()=0 |
| Decrements the reference count for an interface on an object. More...
|
|