RSA   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSupportedPrivateKeyType() 0 3 2
1
<?php
2
/*
3
 * This file is part of the Guarded Authentication package.
4
 *
5
 * (c) Jafar Jabr <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Jafar\Bundle\GuardedAuthenticationBundle\Api\JWTSigner\Signer\OpenSSL;
12
13
/**
14
 * Class RSA.
15
 *
16
 * @author Jafar Jabr <[email protected]>
17
 */
18
abstract class RSA extends PublicKey
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected function getSupportedPrivateKeyType()
24
    {
25
        return defined('OPENSSL_KEYTYPE_RSA') ? OPENSSL_KEYTYPE_RSA : '';
26
    }
27
}
28