ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SAML2\Assertion\Validation\SubjectConfirmationValidator Class Reference
+ Collaboration diagram for SAML2\Assertion\Validation\SubjectConfirmationValidator:

Public Member Functions

 __construct (IdentityProvider $identityProvider, ServiceProvider $serviceProvider)
 
 addConstraintValidator (SubjectConfirmationConstraintValidator $constraint)
 
 validate (SubjectConfirmation $subjectConfirmation)
 

Protected Attributes

 $constraints
 
 $identityProvider
 
 $serviceProvider
 

Detailed Description

Definition at line 11 of file SubjectConfirmationValidator.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addConstraintValidator()

SAML2\Assertion\Validation\SubjectConfirmationValidator::addConstraintValidator ( SubjectConfirmationConstraintValidator  $constraint)

Definition at line 36 of file SubjectConfirmationValidator.php.

38  {
39  if ($constraint instanceof IdentityProviderAware) {
40  $constraint->setIdentityProvider($this->identityProvider);
41  }
42 
43  if ($constraint instanceof ServiceProviderAware) {
44  $constraint->setServiceProvider($this->serviceProvider);
45  }
46 
47  $this->constraints[] = $constraint;
48  }

◆ validate()

SAML2\Assertion\Validation\SubjectConfirmationValidator::validate ( SubjectConfirmation  $subjectConfirmation)

Definition at line 50 of file SubjectConfirmationValidator.php.

References $result.

51  {
52  $result = new Result();
53  foreach ($this->constraints as $validator) {
54  $validator->validate($subjectConfirmation, $result);
55  }
56 
57  return $result;
58  }
$result

Field Documentation

◆ $constraints

SAML2\Assertion\Validation\SubjectConfirmationValidator::$constraints
protected

Definition at line 16 of file SubjectConfirmationValidator.php.

◆ $identityProvider

SAML2\Assertion\Validation\SubjectConfirmationValidator::$identityProvider
protected

◆ $serviceProvider

SAML2\Assertion\Validation\SubjectConfirmationValidator::$serviceProvider
protected

The documentation for this class was generated from the following file: