private static function to_str(\SAML2_Response $response, array $values)
 {
     $xml = self::need_sign($values) ? $response->toSignedXML() : $response->toUnsignedXML();
     return XMLConverter::xml_to_str($xml);
 }