(self, manifest, key, *, warn_if_unencrypted=True)
| 191 | raise Cache.EncryptionMethodMismatch() |
| 192 | |
| 193 | def assert_secure(self, manifest, key, *, warn_if_unencrypted=True): |
| 194 | # warn_if_unencrypted=False is only used for initializing a new repository. |
| 195 | # Thus, avoiding asking about a repository that's currently initializing. |
| 196 | self.assert_access_unknown(warn_if_unencrypted, manifest, key) |
| 197 | self._assert_secure(manifest, key) |
| 198 | logger.debug("security: repository checks ok, allowing access") |
| 199 | |
| 200 | def _assert_secure(self, manifest, key): |
| 201 | self.assert_location_matches() |
no test coverage detected