| Server IP : 104.21.4.30 / Your IP : 104.23.197.69 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/secretstorage/__pycache__/ |
Upload File : |
U
��zW� � @ s� d Z ddlZddlmZ ddlmZ ddlmZmZm Z m
Z
mZmZ ddl
mZmZmZ ddlmZ ed ZG d d� de�ZdS )
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.� N)� SS_PREFIX)�LockedException)�InterfaceWrapper�bus_get_object�open_session�
format_secret�
to_unicode�unlock_objects)�Cipher�
algorithms�modes)�default_backend�Itemc @ s� e Zd ZdZd$dd�Zdd� Zdd� Zd d
� Zd%dd�Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zd&dd�Zdd� Zd d!� Zd"d#� ZdS )'r zRepresents a secret item.Nc C sL || _ t||�}|| _|| _t|t�| _t|tj�| _ | j j
tddd� d S )N�Label�ss�Z signature)� item_pathr �session�busr �
ITEM_IFACE�
item_iface�dbusZPROPERTIES_IFACE�item_props_iface�Get)�selfr r r Zitem_obj� r �4/usr/lib/python3/dist-packages/secretstorage/item.py�__init__ s
�z
Item.__init__c C s | j |j kS )N)r )r �otherr r r �__eq__# s zItem.__eq__c C s t | jjtddd��S )zDReturns :const:`True` if item is locked, otherwise
:const:`False`.ZLockedr r )�boolr r r �r r r r � is_locked&