ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
NotBefore.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
SAML2\Assertion\Validation\ConstraintValidator
;
4
5
use
SAML2\Assertion
;
6
use
SAML2\Assertion\Validation\AssertionConstraintValidator
;
7
use
SAML2\Assertion\Validation\Result
;
8
use
SAML2\Utilities\Temporal
;
9
10
class
NotBefore
implements
11
AssertionConstraintValidator
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
}
SAML2\Assertion\Validation\AssertionConstraintValidator
Definition:
AssertionConstraintValidator.php:7
$result
$result
Definition:
CleanUpTest.php:463
Result
SAML2\Assertion
Definition:
Assertion.php:17
SAML2\Assertion\Validation\ConstraintValidator\NotBefore
Definition:
NotBefore.php:10
SAML2\Assertion\Validation\ConstraintValidator\NotBefore\validate
validate(Assertion $assertion, Result $result)
Definition:
NotBefore.php:13
SAML2\Utilities\Temporal\getTime
static getTime()
Getter for getting the current timestamp.
Definition:
Temporal.php:13
SAML2\Assertion\Validation\Result
Simple Result object.
Definition:
Result.php:10
SAML2\Assertion
Definition:
Decrypter.php:3
SAML2\Assertion\Validation\Result\addError
addError($message)
Definition:
Result.php:20
SAML2\Assertion\Validation\ConstraintValidator
Definition:
NotBefore.php:3
AssertionConstraintValidator
php
SAML2\Assertion\getNotBefore
getNotBefore()
Retrieve the earliest timestamp this assertion is valid.
Definition:
Assertion.php:886
Temporal
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Assertion
Validation
ConstraintValidator
NotBefore.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)