protected function validateSignatures()
    {
        if (!$this->testMdSignatures()) {
            return false;
        }

        if ($this->getSha2Signature() !== null) {
            return $this->getSha2Signature() === $this->calculateSha2Signature();
        }

        return true;
    }