ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
NotOnOrAfter.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
10 class 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 }
validate(Assertion $assertion, Result $result)
$result
static getTime()
Getter for getting the current timestamp.
Definition: Temporal.php:13
Simple Result object.
Definition: Result.php:10
getNotOnOrAfter()
Retrieve the expiration timestamp of this assertion.
Definition: Assertion.php:913