ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
SubjectConfirmationMethod.php
Go to the documentation of this file.
1 <?php
2 
4 
9 
10 class SubjectConfirmationMethod implements
12 {
13  public function validate(
14  SubjectConfirmation $subjectConfirmation,
16  ) {
17  if ($subjectConfirmation->Method !== Constants::CM_BEARER) {
18  $result->addError(sprintf(
19  'Invalid Method on SubjectConfirmation, current;y only Bearer (%s) is supported',
21  ));
22  }
23  }
24 }
$result
Simple Result object.
Definition: Result.php:10
const CM_BEARER
Bearer subject confirmation method.
Definition: Constants.php:60
validate(SubjectConfirmation $subjectConfirmation, Result $result)