@@ -406,7 +406,7 @@ public static function setBaseURLPath($baseurlpath)
406406 }
407407
408408 /**
409- * return string The baseurlpath to be used when constructing URLs
409+ * @ return string The baseurlpath to be used when constructing URLs
410410 */
411411 public static function getBaseURLPath ()
412412 {
@@ -716,7 +716,7 @@ public static function parseSAML2Time($time)
716716 * duration to. Optional, default to the
717717 * current time.
718718 *
719- * @return int|null The new timestamp, after the duration is applied.
719+ * @return int The new timestamp, after the duration is applied.
720720 *
721721 * @throws Exception
722722 */
@@ -799,8 +799,8 @@ public static function parseDuration($duration, $timestamp = null)
799799 /**
800800 * Compares 2 dates and returns the earliest.
801801 *
802- * @param string $cacheDuration The duration, as a string.
803- * @param string $validUntil The valid until date, as a string or as a timestamp
802+ * @param string|null $cacheDuration The duration, as a string.
803+ * @param string|int|null $validUntil The valid until date, as a string or as a timestamp
804804 *
805805 * @return int|null $expireTime The expiration time.
806806 */
@@ -830,9 +830,9 @@ public static function getExpireTime($cacheDuration = null, $validUntil = null)
830830 /**
831831 * Extracts nodes from the DOMDocument.
832832 *
833- * @param DOMDocument $dom The DOMDocument
834- * @param string $query Xpath Expresion
835- * @param DomElement $context Context Node (DomElement)
833+ * @param DOMDocument $dom The DOMDocument
834+ * @param string $query Xpath Expresion
835+ * @param DomElement|null $context Context Node (DomElement)
836836 *
837837 * @return DOMNodeList The queried nodes
838838 */
@@ -953,7 +953,7 @@ public static function formatFingerPrint($fingerprint)
953953 *
954954 * @param string $value fingerprint
955955 * @param string $spnq SP Name Qualifier
956- * @param string $format SP Format
956+ * @param string|null $format SP Format
957957 * @param string|null $cert IdP Public cert to encrypt the nameID
958958 * @param string|null $nq IdP Name Qualifier
959959 *
@@ -1381,6 +1381,18 @@ public static function validateSign($xml, $cert = null, $fingerprint = null, $fi
13811381 return $ valid ;
13821382 }
13831383
1384+ /**
1385+ * Validates a binary signature
1386+ *
1387+ * @param string $messageType Type of SAML Message
1388+ * @param array $getData HTTP GET array
1389+ * @param array $idpData IdP setting data
1390+ * @param bool $retrieveParametersFromServer Indicates where to get the values in order to validate the Sign, from getData or from $_SERVER
1391+ *
1392+ * @return bool
1393+ *
1394+ * @throws Exception
1395+ */
13841396 public static function validateBinarySign ($ messageType , $ getData , $ idpData , $ retrieveParametersFromServer = false )
13851397 {
13861398 if (!isset ($ getData ['SigAlg ' ])) {
0 commit comments