Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | protected static function validRelayState(string $value, string $message = ''): void |
||
21 | { |
||
22 | parent::notWhitespaceOnly($value, $message); // Not protocol-defined, but makes zero sense |
||
23 | try { |
||
24 | /** |
||
25 | * 3.4.3 RelayState |
||
26 | * |
||
27 | * The value MUST NOT exceed 80 bytes in length [..] |
||
28 | */ |
||
29 | parent::maxLength( |
||
30 | $value, |
||
31 | C::MAX_RELAY_STATE_LENGTH, |
||
32 | $message ?: '%s is not a SAML2.0-compliant RelayState', |
||
33 | ); |
||
34 | } catch (AssertionFailedException $e) { |
||
35 | throw new ProtocolViolationException($e->getMessage()); |
||
36 | } |
||
39 |