How to use the secretstorage.util.InterfaceWrapper function in SecretStorage

To help you get started, we’ve selected a few SecretStorage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / collection.py View on Github external
def __init__(self, bus, collection_path=DEFAULT_COLLECTION, session=None):
        collection_obj = bus_get_object(bus, collection_path)
        self.bus = bus
        self.session = session
        self.collection_path = collection_path
        self.collection_iface = InterfaceWrapper(collection_obj,
            COLLECTION_IFACE)
        self.collection_props_iface = InterfaceWrapper(collection_obj,
            dbus.PROPERTIES_IFACE)
        self.collection_props_iface.Get(COLLECTION_IFACE, 'Label',
            signature='ss')
github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / item.py View on Github external
def __init__(self, bus, item_path, session=None):
        self.item_path = item_path
        item_obj = bus_get_object(bus, item_path)
        self.session = session
        self.bus = bus
        self.item_iface = InterfaceWrapper(item_obj, ITEM_IFACE)
        self.item_props_iface = InterfaceWrapper(item_obj,
            dbus.PROPERTIES_IFACE)
        self.item_props_iface.Get(ITEM_IFACE, 'Label', signature='ss')
github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / collection.py View on Github external
def lock(self):
        """Locks the collection."""
        service_obj = bus_get_object(self.bus, SS_PATH)
        service_iface = InterfaceWrapper(service_obj, SERVICE_IFACE)
        service_iface.Lock([self.collection_path], signature='ao')
github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / item.py View on Github external
def __init__(self, bus, item_path, session=None):
        self.item_path = item_path
        item_obj = bus_get_object(bus, item_path)
        self.session = session
        self.bus = bus
        self.item_iface = InterfaceWrapper(item_obj, ITEM_IFACE)
        self.item_props_iface = InterfaceWrapper(item_obj,
            dbus.PROPERTIES_IFACE)
        self.item_props_iface.Get(ITEM_IFACE, 'Label', signature='ss')
github n1nj4sec / pupy / pupy / packages / linux / all / secretstorage / collection.py View on Github external
def __init__(self, bus, collection_path=DEFAULT_COLLECTION, session=None):
        collection_obj = bus_get_object(bus, collection_path)
        self.bus = bus
        self.session = session
        self.collection_path = collection_path
        self.collection_iface = InterfaceWrapper(collection_obj,
            COLLECTION_IFACE)
        self.collection_props_iface = InterfaceWrapper(collection_obj,
            dbus.PROPERTIES_IFACE)
        self.collection_props_iface.Get(COLLECTION_IFACE, 'Label',
            signature='ss')