ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NotOnOrAfter.php
Go to the documentation of this file.
1<?php
2
4
9
10class NotOnOrAfter implements
12{
13 public function validate(Assertion $assertion, Result $result)
14 {
15 $notValidOnOrAfterTimestamp = $assertion->getNotOnOrAfter();
16 if ($notValidOnOrAfterTimestamp && $notValidOnOrAfterTimestamp <= Temporal::getTime() - 60) {
17 $result->addError(
18 'Received an assertion that has expired. Check clock synchronization on IdP and SP.'
19 );
20 }
21 }
22}
$result
An exception for terminatinating execution or to throw for unit testing.
validate(Assertion $assertion, Result $result)
Simple Result object.
Definition: Result.php:11
getNotOnOrAfter()
Retrieve the expiration timestamp of this assertion.
Definition: Assertion.php:913
static getTime()
Getter for getting the current timestamp.
Definition: Temporal.php:13