Passed
Pull Request — master (#363)
by Tim
02:37
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\Key\{PrivateKey, PublicKey, SymmetricKey};
9
10
/**
11
 * Class holding configuration for a SAML 2 Identity Provider.
12
 *
13
 * @package simplesamlphp/saml2
14
 */
15
class IdentityProvider extends AbstractProvider
16
{
17
    /**
18
     */
19
    public function __construct(
20
        string $entityId,
21
        string $signatureAlgorithm = C::SIG_RSA_SHA256,
22
        array $validatingKeys = [],
23
        ?PrivateKey $signingKey = null,
24
        ?PublicKey $encryptionKey = null,
25
        array $decryptionKeys = [],
26
        ?SymmetricKey $preSharedKey = null,
27
        string $preSharedKeyAlgorithm = C::BLOCK_ENC_AES256_GCM,
28
        array $IDPList = [],
29
    ) {
30
        parent::__construct(
31
            $entityId,
32
            $signatureAlgorithm,
33
            $validatingKeys,
34
            $signingKey,
35
            $encryptionKey,
36
            $decryptionKeys,
37
            $preSharedKey,
38
            $preSharedKeyAlgorithm,
39
            $IDPList,
40
        );
41
    }
42
}
43