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

Public Member Functions

 __construct (IdentityProvider $identityProvider, ServiceProvider $serviceProvider)
 
 addConstraintValidator (AssertionConstraintValidator $constraint)
 
 validate (Assertion $assertion)
 

Protected Attributes

 $constraints
 

Private Attributes

 $identityProvider
 
 $serviceProvider
 

Detailed Description

Definition at line 11 of file AssertionValidator.php.

Constructor & Destructor Documentation

◆ __construct()

SAML2\Assertion\Validation\AssertionValidator::__construct ( IdentityProvider  $identityProvider,
ServiceProvider  $serviceProvider 
)
Parameters
\SAML2\Configuration\IdentityProvider$identityProvider
\SAML2\Configuration\ServiceProvider$serviceProvider

Definition at line 32 of file AssertionValidator.php.

References SAML2\Assertion\Validation\AssertionValidator\$identityProvider, and SAML2\Assertion\Validation\AssertionValidator\$serviceProvider.

Member Function Documentation

◆ addConstraintValidator()

SAML2\Assertion\Validation\AssertionValidator::addConstraintValidator ( AssertionConstraintValidator  $constraint)

Definition at line 40 of file AssertionValidator.php.

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

◆ validate()

SAML2\Assertion\Validation\AssertionValidator::validate ( Assertion  $assertion)

Definition at line 53 of file AssertionValidator.php.

References $result.

54  {
55  $result = new Result();
56  foreach ($this->constraints as $validator) {
57  $validator->validate($assertion, $result);
58  }
59 
60  return $result;
61  }
$result

Field Documentation

◆ $constraints

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

Definition at line 16 of file AssertionValidator.php.

◆ $identityProvider

SAML2\Assertion\Validation\AssertionValidator::$identityProvider
private

◆ $serviceProvider

SAML2\Assertion\Validation\AssertionValidator::$serviceProvider
private

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