ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
SubjectConfirmationNotBefore.php
Go to the documentation of this file.
1
<?php
2
3
namespace
SAML2\Assertion\Validation\ConstraintValidator
;
4
5
use
SAML2\Assertion\Validation\Result
;
6
use
SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator
;
7
use
SAML2\Utilities\Temporal
;
8
use
SAML2\XML\saml\SubjectConfirmation
;
9
10
class
SubjectConfirmationNotBefore
implements
11
SubjectConfirmationConstraintValidator
12
{
13
public
function
validate
(
14
SubjectConfirmation
$subjectConfirmation,
15
Result
$result
16
) {
17
$notBefore
= $subjectConfirmation->SubjectConfirmationData->NotBefore;
18
if
(
$notBefore
&&
$notBefore
>
Temporal::getTime
() + 60) {
19
$result->
addError
(
'NotBefore in SubjectConfirmationData is in the future'
);
20
}
21
}
22
}
SAML2\Assertion\$notBefore
$notBefore
Definition:
Assertion.php:82
SAML2\XML\saml\SubjectConfirmation
Definition:
SubjectConfirmation.php:13
$result
$result
Definition:
CleanUpTest.php:463
SubjectConfirmationConstraintValidator
Result
SubjectConfirmation
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\Validation\Result\addError
addError($message)
Definition:
Result.php:20
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationNotBefore\validate
validate(SubjectConfirmation $subjectConfirmation, Result $result)
Definition:
SubjectConfirmationNotBefore.php:13
SAML2\Assertion\Validation\ConstraintValidator
Definition:
NotBefore.php:3
SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator
Definition:
SubjectConfirmationConstraintValidator.php:7
Temporal
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationNotBefore
Definition:
SubjectConfirmationNotBefore.php:10
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Assertion
Validation
ConstraintValidator
SubjectConfirmationNotBefore.php
Generated on Sat Jan 18 2025 19:01:09 for ILIAS by
1.8.13 (using
Doxyfile
)