ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SubjectConfirmationMethod.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\Constants
;
8
use
SAML2\XML\saml\SubjectConfirmation
;
9
10
class
SubjectConfirmationMethod
implements
11
SubjectConfirmationConstraintValidator
12
{
13
public
function
validate
(
14
SubjectConfirmation
$subjectConfirmation,
15
Result
$result
16
) {
17
if
($subjectConfirmation->Method !==
Constants::CM_BEARER
) {
18
$result->
addError
(sprintf(
19
'Invalid Method on SubjectConfirmation, current;y only Bearer (%s) is supported'
,
20
Constants::CM_BEARER
21
));
22
}
23
}
24
}
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationMethod
Definition:
SubjectConfirmationMethod.php:10
SAML2\XML\saml\SubjectConfirmation
Definition:
SubjectConfirmation.php:13
$result
$result
Definition:
CleanUpTest.php:463
SubjectConfirmationConstraintValidator
Constants
Result
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\Constants\CM_BEARER
const CM_BEARER
Bearer subject confirmation method.
Definition:
Constants.php:60
SAML2\Assertion\Validation\ConstraintValidator\SubjectConfirmationMethod\validate
validate(SubjectConfirmation $subjectConfirmation, Result $result)
Definition:
SubjectConfirmationMethod.php:13
SAML2\Assertion\Validation\SubjectConfirmationConstraintValidator
Definition:
SubjectConfirmationConstraintValidator.php:7
php
libs
composer
vendor
simplesamlphp
saml2
src
SAML2
Assertion
Validation
ConstraintValidator
SubjectConfirmationMethod.php
Generated on Thu Jan 30 2025 19:01:31 for ILIAS by
1.8.13 (using
Doxyfile
)