SAML2\Response\Processor::verifySignature PHP Method

verifySignature() private method

private verifySignature ( SAML2\Response $response, IdentityProvider $identityProviderConfiguration )
$response SAML2\Response
$identityProviderConfiguration SAML2\Configuration\IdentityProvider
    private function verifySignature(Response $response, IdentityProvider $identityProviderConfiguration)
    {
        if (!$response->isMessageConstructedWithSignature()) {
            $this->logger->info(sprintf('SAMLResponse with id "%s" was not signed at root level, not attempting to verify the signature of the' . ' reponse itself', $response->getId()));
            return;
        }
        $this->logger->info(sprintf('Attempting to verify the signature of SAMLResponse with id "%s"', $response->getId()));
        $this->responseIsSigned = true;
        if (!$this->signatureValidator->hasValidSignature($response, $identityProviderConfiguration)) {
            throw new InvalidResponseException();
        }
    }