Skip to content

Commit 8d756e9

Browse files
committed
Replace PrivateKey class with the one from xml-security
1 parent 6e3c2fe commit 8d756e9

File tree

3 files changed

+4
-99
lines changed

3 files changed

+4
-99
lines changed

src/Configuration/IdentityProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
namespace SimpleSAML\SAML2\Configuration;
66

77
use RuntimeException;
8+
use SimpleSAML\XMLSecurity\Constants as C;
9+
use SimpleSAML\XMLSecurity\Key\PrivateKey;
810

911
use function array_filter;
1012
use function array_pop;
@@ -108,7 +110,7 @@ public function getPrivateKey(string $name, ?bool $required = null)
108110
*/
109111
public function getBlacklistedAlgorithms(): ?array
110112
{
111-
return $this->get('blacklistedEncryptionAlgorithms');
113+
return $this->get('blacklistedEncryptionAlgorithms', [C::KEY_TRANSPORT_RSA_1_5]);
112114
}
113115

114116

src/Configuration/PrivateKey.php

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/Configuration/ServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use RuntimeException;
88
use SimpleSAML\XMLSecurity\Constants as C;
9+
use SimpleSAML\XMLSecurity\Key\PrivateKey;
910

1011
use function array_filter;
1112
use function array_pop;

0 commit comments

Comments
 (0)