84 foreach ($assertions as $assertion) {
85 $processed->add($this->
process($assertion));
100 if (!$assertion->getWasSignedAtConstruction()) {
101 $this->logger->info(sprintf(
102 'Assertion with id "%s" was not signed at construction, not verifying the signature',
106 $this->logger->info(sprintf(
'Verifying signature of Assertion with id "%s"', $assertion->getId()));
108 if (!$this->signatureValidator->hasValidSignature($assertion, $this->identityProviderConfiguration)) {
127 if ($this->decrypter->isEncryptionRequired() && $assertion instanceof
Assertion) {
135 return $this->decrypter->decrypt($assertion);
143 $assertionValidationResult = $this->assertionValidator->validate($assertion);
144 if (!$assertionValidationResult->isValid()) {
146 'Invalid Assertion in SAML Response, erorrs: "%s"',
147 implode(
'", "', $assertionValidationResult->getErrors())
152 $subjectConfirmationValidationResult = $this->subjectConfirmationValidator->validate(
155 if (!$subjectConfirmationValidationResult->isValid()) {
157 'Invalid SubjectConfirmation in Assertion, errors: "%s"',
158 implode(
'", "', $subjectConfirmationValidationResult->getErrors())
171 return $this->transformer->transform($assertion);
(PHPMD.CouplingBetweenObjects) - due to all the named exceptions
Basic configuration wrapper.
transformAssertion(Assertion $assertion)
$subjectConfirmationValidator
validateAssertion(Assertion $assertion)
Simple Array implementation of Collection.
processAssertions($assertions)
Describes a logger instance.
__construct(Decrypter $decrypter, Validator $signatureValidator, AssertionValidator $assertionValidator, SubjectConfirmationValidator $subjectConfirmationValidator, Transformer $transformer, IdentityProvider $identityProviderConfiguration, LoggerInterface $logger)
$identityProviderConfiguration
getSubjectConfirmation()
Retrieve the SubjectConfirmation elements we have in our Subject element.
decryptAssertion($assertion)