%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/secretstorage/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/secretstorage/__pycache__/item.cpython-312.pyc |
� ��b� � � � d Z ddlmZmZ ddlmZ ddlmZ ddlm Z ddl mZmZ ddl mZmZmZmZmZ ddlmZmZmZ dd lmZ ed z Z G d� d � Zy) aQ SecretStorage item contains a *secret*, some *attributes* and a *label* visible to user. Editing all these properties and reading the secret is possible only when the :doc:`collection <collection>` storing the item is unlocked. The collection can be unlocked using collection's :meth:`~secretstorage.collection.Collection.unlock` method.� )�Dict�Optional)�DBusConnection)� SS_PREFIX)�Session)�LockedException�PromptDismissedException)�DBusAddressWrapper�exec_prompt�open_session� format_secret�unlock_objects)�Cipher� algorithms�modes)�default_backend�Itemc � � e Zd ZdZ ddededee ddfd�Zdd de fd �Z de fd�Zdd�Zde fd �Z deeef fd�Zdeeef ddfd�Zdefd�Zdeddfd�Zdd�Zdefd�Zdefd�Z ddededdfd�Zdefd�Zdefd�Zy)r zRepresents a secret item.N� connection� item_path�session�returnc � � || _ t |t |� | _ | j j d� || _ || _ y )N�Label)r r � ITEM_IFACE�_item�get_propertyr r )�selfr r r s �4/usr/lib/python3/dist-packages/secretstorage/item.py�__init__z Item.__init__ s9 � �"���'� �:�z�J�� �� � ����(����$��� �otherr c �l � t |j t � sJ �| j |j k( S �N)� isinstancer �str)r r"