59 $this->signatureValidator =
new Validator($logger);
77 $this->assertionProcessor = ProcessorBuilder::build(
79 $this->signatureValidator,
81 $identityProviderConfiguration,
82 $serviceProviderConfiguration,
98 $result = $this->preconditionValidator->validate($response);
101 throw PreconditionNotMetException::createFromValidationResult(
$result);
114 $this->logger->info(sprintf(
115 'SAMLResponse with id "%s" was not signed at root level, not attempting to verify the signature of the' 123 $this->logger->info(sprintf(
124 'Attempting to verify the signature of SAMLResponse with id "%s"',
128 $this->responseIsSigned =
true;
130 if (!$this->signatureValidator->hasValidSignature($response, $identityProviderConfiguration)) {
147 if (!$this->responseIsSigned) {
149 if (!$assertion->getWasSignedAtConstruction()) {
151 'Both the response and the assertion it contains are not signed.' 157 return $this->assertionProcessor->processAssertions(
$assertions);
processAssertions(Response $response)
Basic configuration wrapper.
(PHPMD.CouplingBetweenObjects) - due to specific exceptions
Validates the preconditions that have to be met prior to processing of the response.
Basic Configuration Wrapper.
process(ServiceProvider $serviceProviderConfiguration, IdentityProvider $identityProviderConfiguration, Destination $currentDestination, Response $response)
enforcePreconditions(Response $response)
Checks the preconditions that must be valid in order for the response to be processed.
getAssertions()
Retrieve the assertions in this response.
__construct(LoggerInterface $logger)
isMessageConstructedWithSignature()
Query whether or not the message contained a signature at the root level when the object was construc...
getId()
Retrieve the identifier of this message.
verifySignature(Response $response, IdentityProvider $identityProviderConfiguration)
Describes a logger instance.
Value Object representing the current destination.
$assertions
The assertions in this response.