ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
SubjectConfirmationRecipientMatches.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\Configuration\Destination
;
8
use
SAML2\XML\saml\SubjectConfirmation
;
9
10
class
SubjectConfirmationRecipientMatches
implements
11
SubjectConfirmationConstraintValidator
12
{
16
private
$destination
;
17
18
public
function
__construct
(
Destination
$destination
)
19
{
20
$this->destination =
$destination
;
21
}
22
23
public
function
validate
(
24
SubjectConfirmation
$subjectConfirmation,
25
Result
$result
26
) {
27
$recipient = $subjectConfirmation->SubjectConfirmationData->Recipient;
28
if
($recipient && !$this->destination->equals(
new
Destination
($recipient))) {
29
$result->
addError
(sprintf(
30
'Recipient in SubjectConfirmationData ("%s") does not match the current destination ("%s")'
,
31
$recipient,
32
$this->destination
33
));
34
}
35
}
36
}
SAML2\XML\saml\SubjectConfirmation
Definition:
SubjectConfirmation.php:13
$result
$result
Definition:
CleanUpTest.php:463
SubjectConfirmationConstraintValidator
Result
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationRecipientMatches\validate
validate(SubjectConfirmation $subjectConfirmation, Result $result)
Definition:
SubjectConfirmationRecipientMatches.php:23
SubjectConfirmation
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\SubjectConfirmationRecipientMatches\$destination
$destination
Definition:
SubjectConfirmationRecipientMatches.php:16
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationRecipientMatches\__construct
__construct(Destination $destination)
Definition:
SubjectConfirmationRecipientMatches.php:18
SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator
Definition:
SubjectConfirmationConstraintValidator.php:7
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationRecipientMatches
Definition:
SubjectConfirmationRecipientMatches.php:10
SAML2\Configuration\Destination
Value Object representing the current destination.
Definition:
Destination.php:10
Destination
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Assertion
Validation
ConstraintValidator
SubjectConfirmationRecipientMatches.php
Generated on Sat Jan 18 2025 19:01:09 for ILIAS by
1.8.13 (using
Doxyfile
)