@@ -27,7 +27,7 @@ final class Signature extends AbstractDsElement
2727 /** @var string[] */
2828 protected array $ certificates = [];
2929
30- /** @var SignatureValue */
30+ /** @var \SimpleSAML\XMLSecurity\XML\ds\ SignatureValue */
3131 protected SignatureValue $ value ;
3232
3333 /** @var \SimpleSAML\XMLSecurity\XMLSecurityKey|null */
@@ -41,6 +41,7 @@ final class Signature extends AbstractDsElement
4141 * Signature constructor.
4242 *
4343 * @param string $algorithm
44+ * @param \SimpleSAML\XMLSecurity\XML\ds\SignatureValue $value
4445 * @param string[] $certificates
4546 * @param \SimpleSAML\XMLSecurity\XMLSecurityKey|null $key
4647 *
@@ -79,7 +80,7 @@ public function getAlgorithm(): string
7980 */
8081 protected function setAlgorithm (string $ algorithm ): void
8182 {
82- Assert::notEmpty ($ algorithm , 'Signature algorithm cannot be empty ' );
83+ Assert::notWhitespaceOnly ($ algorithm , 'Signature algorithm cannot be empty ' );
8384 $ this ->algorithm = $ algorithm ;
8485 }
8586
@@ -126,7 +127,7 @@ protected function setKey(?XMLSecurityKey $key): void
126127 /**
127128 * Get the SignatureValue corresponding to this signature.
128129 *
129- * @return SignatureValue
130+ * @return \SimpleSAML\XMLSecurity\XML\ds\ SignatureValue
130131 */
131132 public function getSignatureValue (): SignatureValue
132133 {
@@ -137,7 +138,7 @@ public function getSignatureValue(): SignatureValue
137138 /**
138139 * Set the SignatureValue.
139140 *
140- * @param SignatureValue $value
141+ * @param \SimpleSAML\XMLSecurity\XML\ds\ SignatureValue $value
141142 */
142143 protected function setSignatureValue (SignatureValue $ value ): void
143144 {
@@ -155,7 +156,7 @@ public function getSigner(): XMLSecurityDSig
155156
156157
157158 /**
158- * @param DOMElement $xml
159+ * @param \ DOMElement $xml
159160 *
160161 * @return \SimpleSAML\XML\AbstractXMLElement
161162 * @throws \Exception
0 commit comments