Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | protected static function validSAMLDateTime(string $value, string $message = ''): void |
||
20 | { |
||
21 | parent::validDateTime($value, $message); |
||
22 | |||
23 | try { |
||
24 | /** |
||
25 | * 1.2.2 Time Values |
||
26 | * |
||
27 | * All SAML time values have the type xsd:dateTime, which is built in to the W3C XML Schema Datatypes |
||
28 | * specification [Schema2], and MUST be expressed in UTC form |
||
29 | */ |
||
30 | static::endsWith( |
||
31 | $value, |
||
32 | 'Z', |
||
33 | $message ?: '%s is not a DateTime expressed in the UTC timezone using the \'Z\' timezone identifier.', |
||
34 | ); |
||
35 | } catch (AssertionFailedException $e) { |
||
36 | throw new ProtocolViolationException($e->getMessage()); |
||
37 | } |
||
40 |