/**
  * Returns API key usable for the given user.
  * The API key consists of "hmac,username".
  */
 public static function getApikey($afUser)
 {
     $extraKey = $afUser->getPassword();
     return afAuthenticDatamaker::plainEncode($afUser->getUsername(), $extraKey);
 }