def METHOD_NAME(self, password):
    """
    :param password:
    :type password: str
    :return: result of password check: 0 if success, -1 if failed
    :rtype: int
    """
    res = -1
    key = self.secretObject.getKey()
    # getKey() returns bytes and since we can not assume, that the
    # password only contains printable characters, we need to compare
    # bytes strings here. This also avoids making another copy of 'key'.
    if safe_compare(key, password):
        res = 0
    zerome(key)
    del key
    return res