1010use SimpleSAML \SAML2 \Configuration \CertificateProvider ;
1111use SimpleSAML \SAML2 \Utilities \File ;
1212use SimpleSAML \XMLSecurity \Utils \Certificate ;
13+ use Traversable ;
1314
1415use function count ;
1516use function preg_match ;
@@ -40,8 +41,6 @@ public function __construct()
4041 * Prioritisation order is keys > certData > certificate
4142 *
4243 * @param \SimpleSAML\SAML2\Configuration\CertificateProvider $config
43- * @param string|null $usage
44- * @param bool $required
4544 * @return \SimpleSAML\SAML2\Certificate\KeyCollection
4645 */
4746 public static function extractPublicKeys (
@@ -57,8 +56,6 @@ public static function extractPublicKeys(
5756
5857 /**
5958 * @param \SimpleSAML\SAML2\Configuration\CertificateProvider $config
60- * @param null|string $usage
61- * @param bool $required
6259 * @return \SimpleSAML\SAML2\Certificate\KeyCollection
6360 */
6461 public function loadKeysFromConfiguration (
@@ -92,11 +89,8 @@ public function loadKeysFromConfiguration(
9289 /**
9390 * Loads the keys given, optionally excluding keys when a usage is given and they
9491 * are not configured to be used with the usage given
95- *
96- * @param array|\Traversable $configuredKeys
97- * @param string|null $usage
9892 */
99- public function loadKeys ($ configuredKeys , ?string $ usage = null ): void
93+ public function loadKeys (array | Traversable $ configuredKeys , ?string $ usage = null ): void
10094 {
10195 foreach ($ configuredKeys as $ keyData ) {
10296 if (isset ($ keyData ['X509Certificate ' ])) {
@@ -116,8 +110,6 @@ public function loadKeys($configuredKeys, ?string $usage = null): void
116110
117111 /**
118112 * Attempts to load a key based on the given certificateData
119- *
120- * @param string $certificateData
121113 */
122114 public function loadCertificateData (string $ certificateData ): void
123115 {
@@ -156,7 +148,6 @@ public function getKeys(): KeyCollection
156148
157149
158150 /**
159- * @return bool
160151 */
161152 public function hasKeys (): bool
162153 {
0 commit comments