private function validateUserPass($userPass) { if (1 !== preg_match(self::REGEXP_VSCHAR, $userPass)) { throw new ClientConfigException('invalid characters in client_id or client_secret'); } }