Passed
Push — master ( f3e803...79c4ca )
by Tim
02:20
created

IdentityProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 21 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\Metadata;
6
7
use SimpleSAML\XMLSecurity\Constants as C;
8
use SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory;
9
use SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory;
10
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmFactory;
11
use SimpleSAML\XMLSecurity\Key\{PrivateKey, PublicKey, SymmetricKey};
12
13
/**
14
 * Class holding configuration for a SAML 2 Identity Provider.
15
 *
16
 * @package simplesamlphp/saml2
17
 */
18
class IdentityProvider extends AbstractProvider
19
{
20
    /**
21
     */
22
    public function __construct(
23
        string $entityId,
24
        EncryptionAlgorithmFactory|KeyTransportAlgorithmFactory|null $encryptionAlgorithmFactory = null,
25
        SignatureAlgorithmFactory|null $signatureAlgorithmFactory = null,
26
        string $signatureAlgorithm = C::SIG_RSA_SHA256,
27
        array $validatingKeys = [],
28
        PrivateKey|null $signingKey = null,
29
        PublicKey|SymmetricKey|null $encryptionKey = null,
30
        array $decryptionKeys = [],
31
        array $IDPList = [],
32
    ) {
33
        parent::__construct(
34
            $entityId,
35
            $encryptionAlgorithmFactory,
36
            $signatureAlgorithmFactory,
37
            $signatureAlgorithm,
38
            $validatingKeys,
39
            $signingKey,
40
            $encryptionKey,
41
            $decryptionKeys,
42
            $IDPList,
43
        );
44
    }
45
}
46