Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
EncryptionConfigurationException | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
undeterminedEncryption | |
0.00% |
0 / 5 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Oauth2Provider\Keycloak\Exception; |
4 | |
5 | class EncryptionConfigurationException extends \Exception |
6 | { |
7 | /** |
8 | * Returns properly formatted exception when response decryption fails. |
9 | */ |
10 | public static function undeterminedEncryption(): static |
11 | { |
12 | return new self( |
13 | 'The given response may be encrypted and sufficient ' . |
14 | 'encryption configuration has not been provided.', |
15 | 400 |
16 | ); |
17 | } |
18 | } |