public function getAllowedMethods($token) {
        $token = (string)$token;
        $array = (isset($this->config['tokens'][$token]))?$this->config['tokens'][$token]:array();
        $allowed = array_merge_recursive(
            $this->config['tokens']['*'],
            $array
        );
        $allowed = array_change_key_case($allowed);
        array_walk_recursive($allowed,function(&$value,$key){$value=mb_strtolower($value);});
        return $allowed;
    }