ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SubjectConfirmationNotOnOrAfter.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
SubjectConfirmationNotOnOrAfter
implements
11
SubjectConfirmationConstraintValidator
12
{
13
public
function
validate
(
14
SubjectConfirmation
$subjectConfirmation,
15
Result
$result
16
) {
17
$notOnOrAfter
= $subjectConfirmation->SubjectConfirmationData->NotOnOrAfter;
18
if
(
$notOnOrAfter
&&
$notOnOrAfter
<=
Temporal::getTime
() - 60) {
19
$result->
addError
(
'NotOnOrAfter in SubjectConfirmationData is in the past'
);
20
}
21
}
22
}
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationNotOnOrAfter
Definition:
SubjectConfirmationNotOnOrAfter.php:10
SAML2\XML\saml\SubjectConfirmation
Definition:
SubjectConfirmation.php:13
$result
$result
Definition:
CleanUpTest.php:463
SubjectConfirmationConstraintValidator
Result
SAML2\Assertion\$notOnOrAfter
$notOnOrAfter
Definition:
Assertion.php:89
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
Definition:
NotBefore.php:3
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationNotOnOrAfter\validate
validate(SubjectConfirmation $subjectConfirmation, Result $result)
Definition:
SubjectConfirmationNotOnOrAfter.php:13
SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator
Definition:
SubjectConfirmationConstraintValidator.php:7
php
Temporal
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Assertion
Validation
ConstraintValidator
SubjectConfirmationNotOnOrAfter.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)