/**
* This method returns the CAS user's login name.
*
* @return string the login name of the authenticated user
* @warning should only be called after phpCAS::forceAuthentication()
* or phpCAS::checkAuthentication().
* */
public static function getUser()
{
phpCAS::_validateClientExists();
try {
return self::$_PHPCAS_CLIENT->getUser();
} catch (Exception $e) {
phpCAS::error(get_class($e) . ': ' . $e->getMessage());
}
}