ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
NotBefore.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
10 class NotBefore implements
12 {
13  public function validate(Assertion $assertion, Result $result)
14  {
15  $notBeforeTimestamp = $assertion->getNotBefore();
16  if ($notBeforeTimestamp && $notBeforeTimestamp > Temporal::getTime() + 60) {
17  $result->addError(
18  'Received an assertion that is valid in the future. Check clock synchronization on IdP and SP.'
19  );
20  }
21  }
22 }
$result
validate(Assertion $assertion, Result $result)
Definition: NotBefore.php:13
static getTime()
Getter for getting the current timestamp.
Definition: Temporal.php:13
Simple Result object.
Definition: Result.php:10
getNotBefore()
Retrieve the earliest timestamp this assertion is valid.
Definition: Assertion.php:886