def __init__(self, policies=None, database_path=None):
self._logger = logging.getLogger('<STR_LIT>')<EOL>self._cryptography_engine = engine.CryptographyEngine()<EOL>self.database_path = '<STR_LIT>'.format(database_path)<EOL>if not database_path:<EOL><INDENT>self.database_path = '<STR_LIT>'<EOL><DEDENT>self._data_store = sqlalchemy.create_engine(<EOL>self.database_path,<EOL>echo=False,<EOL>connect_args={'<STR_LIT>': False}<EOL>)<EOL>sqltypes.Base.metadata.create_all(self._data_store)<EOL>self._data_store_session_factory = sqlalchemy.orm.sessionmaker(<EOL>bind=self._data_store<EOL>)<EOL>self._lock = threading.RLock()<EOL>self._id_placeholder = None<EOL>self._protocol_versions = [<EOL>contents.ProtocolVersion(<NUM_LIT:1>, <NUM_LIT:4>),<EOL>contents.ProtocolVersion(<NUM_LIT:1>, <NUM_LIT:3>),<EOL>contents.ProtocolVersion(<NUM_LIT:1>, <NUM_LIT:2>),<EOL>contents.ProtocolVersion(<NUM_LIT:1>, <NUM_LIT:1>),<EOL>contents.ProtocolVersion(<NUM_LIT:1>, <NUM_LIT:0>)<EOL>]<EOL>self.default_protocol_version = self._protocol_versions[<NUM_LIT:2>]<EOL>self._protocol_version = self._protocol_versions[<NUM_LIT:2>]<EOL>self._object_map = {<EOL>enums.ObjectType.CERTIFICATE: objects.X509Certificate,<EOL>enums.ObjectType.SYMMETRIC_KEY: objects.SymmetricKey,<EOL>enums.ObjectType.PUBLIC_KEY: objects.PublicKey,<EOL>enums.ObjectType.PRIVATE_KEY: objects.PrivateKey,<EOL>enums.ObjectType.SPLIT_KEY: None,<EOL>enums.ObjectType.TEMPLATE: None,<EOL>enums.ObjectType.SECRET_DATA: objects.SecretData,<EOL>enums.ObjectType.OPAQUE_DATA: objects.OpaqueObject<EOL>}<EOL>self._attribute_policy = policy.AttributePolicy(self._protocol_version)<EOL>self._operation_policies = policies<EOL>self._client_identity = [None, None]<EOL>
Create a KmipEngine.

Args:
    policy_path (string): The path to the filesystem directory
        containing PyKMIP server operation policy JSON files.
        Optional, defaults to None.
    database_path (string): The path to the SQLite database file
        used to store all server data. Optional, defaults to None.
        If none, database path defaults to '/tmp/pykmip.database'.