def init_app(self, app, server_pw, server_un='root', host='localhost',
                 port=2424):
        if not app:
            raise Exception('pass in a flask app')
        self.app = app
        self.app.config.setdefault('ORIENTDB_SERVER_PASSWORD', server_pw)
        self.app.config.setdefault('ORIENTDB_SERVER_USERNAME', server_un)
        self.app.config.setdefault('ORIENTDB_HOST', host)
        self.app.config.setdefault('ORIENTDB_PORT', port)
        self.app.config.setdefault('ORIENTDB_DB', None)
        # Use the newstyle teardown_appcontext if it's available,
        # otherwise faargsll back to the request context
        if hasattr(app, 'teardown_appcontext'):
            app.teardown_appcontext(self._teardown)
        else:
            app.teardown_request(self._teardown)
        app.before_request(self._before_request)
        # register extension with app
        if 'orientdb' not in app.extensions:
            app.extensions['orientdb'] = self
Validates a digest file.
dataset/ETHPy150Open calthoff/flask-orientdb/flask_orientdb.py/OrientDB.init_app--crossover with--dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py/Sha256RSADigestValidator.validate