| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/keyring/backends/__pycache__/ |
Upload File : |
�
%�c� � � � d dl Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z m
Z
mZmZ dZ
d dlZd d lmZ d d
lmZ ej dd� � d d
lmZ dZ
n# eeef$ r Y nw xY w e j e� � Z G d� dej e� � ZdS )� N� )�backend)�
properties)�KeyringBackend)�SimpleCredential)�PasswordDeleteError�PasswordSetError�ExceptionRaisedContext�
KeyringLockedF)�Gio)�GLib�Secret�1)r Tc � � e Zd ZdZdZed� � � Zej d� � � Z ej
d� � � Zd� Zd� Z
d� Zd � Zd
S )�Keyringzlibsecret KeyringzPython keyring libraryc �� � t j � dt j j | � t j j t j j t j j �� � � � S )Nzorg.freedesktop.Secret.Generic��application)r �Schema�new�SchemaFlags�NONE�_query�SchemaAttributeType�STRING��selfs �</usr/lib/python3/dist-packages/keyring/backends/libsecret.py�schemazKeyring.schema# sY � ��}� � �,���#��K�K��*�1��*�1�"�6�=�
�
�
�
�
�
� c � � t j S )N)r �COLLECTION_DEFAULTr s r �
collectionzKeyring.collection/ s � ��(�(r c � � t � � 5 }t j d d d � � n# 1 swxY w Y |rt d� � �dS )Nzlibsecret requiredg333333@)r
r �__name__�RuntimeError)�cls�excs r �priorityzKeyring.priority3 s� � �
#�
%�
%� ���O�O� � � � � � � � � � � ���� � � � �� 5��3�4�4�4��ss �
(�,�,c �x � | � ||| j �� � } t j | j |t j j d� � }na# t j $ rO}t j d� � }|�
|t j j
� � rt d� � |�� d}~ww xY w|D ]�} |� � � � � � c S # t j $ rO}t j d� � }|�
|t j j � � rt d� � |�� d}~ww xY wdS )z,Get password of the username for the servicer N�g-io-error-quark�Failed to unlock the item!�secret-error)r �appidr �password_search_syncr �SearchFlags�UNLOCKr
�Error�quark_try_string�matchesr �IOErrorEnum�FAILEDr �retrieve_secret_sync�get_text� IS_LOCKED)r �service�username�
attributes�items�error�quark�items r �get_passwordzKeyring.get_password; sN � ��[�[��(��
�[�K�K�
� ��/���Z��);�)B�D�� �E�E�� �z� � � ��)�*<�=�=�E��}�}�U�C�O�$:�;�;�
M�#�$@�A�A�u�L������ ����
� � �D�
��0�0�2�2�;�;�=�=�=�=�=���:�
�
�
��-�n�=�=���=�=����(>�?�?� Q�'�(D�E�E�5�P������
���� � s1 �+A �B)�A
B$�$B)�1%C�D7�(A
D2�2D7c �, � | � ||| j �� � }d� ||� � } t j | j || j ||d� � }n�# t j $ r�}t j d� � }|�
|t j j � � rt d� � |�t j d� � }|�
|t j j � � rt d� � |�� d}~ww xY w|st! d� � �dS )z,Set password for the username of the servicer zPassword for '{}' on '{}'Nr- z Failed to unlock the collection!r+ zFailed to store password!)r r. �formatr �password_store_syncr r# r
r2 r3 r4 r9 r r r5 r6 r ) r r: r; �passwordr<