class CredentialsCache;
/**
- * \ingroup AuthAPI
* This is the main user related structure. It stores user-related data,
* and is persistent across requests. It can even persist across
* multiple external authentications. One major benefit of preserving this
public:
typedef RefCount<User> Pointer;
+protected:
+ User(Auth::Config *, const char *requestRealm);
+public:
+ virtual ~User();
+
/* extra fields for proxy_auth */
- /* auth_type and auth_module are deprecated. Do Not add new users of these fields.
- * Aim to remove shortly
- */
/** \deprecated this determines what scheme owns the user data. */
Auth::Type auth_type;
/** the config for this user */
static SBuf BuildUserKey(const char *username, const char *realm);
void absorb(Auth::User::Pointer from);
- virtual ~User();
char const *username() const { return username_; }
void username(char const *); ///< set stored username and userKey
*/
CredentialState credentials_state;
-protected:
- User(Auth::Config *, const char *requestRealm);
-
private:
/**
* DPW 2007-05-08
public:
User(Auth::Config *, const char *requestRealm);
- ~User();
+ virtual ~User();
int authenticated() const;
virtual int32_t ttl() const;