Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | protected static function validSAMLString(string $value, string $message = ''): void |
||
21 | { |
||
22 | parent::validString($value, $message, SchemaViolationException::class); |
||
23 | try { |
||
24 | /** |
||
25 | * 1.3.1 String Values |
||
26 | * |
||
27 | * Unless otherwise noted in this specification or particular profiles, all strings in |
||
28 | * SAML messages MUST consist of at least one non-whitespace character |
||
29 | */ |
||
30 | parent::notWhitespaceOnly($value, $message ?: '%s is not a SAML2.0-compliant string'); |
||
31 | } catch (AssertionFailedException $e) { |
||
32 | throw new ProtocolViolationException($e->getMessage()); |
||
33 | } |
||
36 |