Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/keyring/backends/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/keyring/backends/__pycache__/libsecret.cpython-310.pyc
o

���a/�
@s�ddlZddlmZddlmZddlmZddlmZm	Z	m
Z
mZdZz ddl
Z
ddlmZdd	lmZe
�d
d�ddlmZd
ZWneeefyPYnwe�e�ZGdd�de�ZdS)�N�)�
properties)�KeyringBackend)�SimpleCredential)�PasswordDeleteError�PasswordSetError�ExceptionRaisedContext�
KeyringLockedF)�Gio)�GLib�Secret�1)rTc@sxeZdZdZdZer!ej�dej	j
ejjejjejjd��Z
ejZejedd���Zdd�Zd	d
�Zdd�Zd
d�ZdS)�Keyringzlibsecret KeyringzPython keyring libraryzorg.freedesktop.Secret.Generic��application�service�usernamecCs<t��}tjWd�n1swY|rtd��dS)Nzlibsecret requiredg333333@)rr�__name__�RuntimeError)�cls�exc�r�</usr/lib/python3/dist-packages/keyring/backends/libsecret.py�priority-s�zKeyring.prioritycCs�|j||d�}z
t�|j|tjjd�}Wn tjy4}zt�d�}|�	|t
jj�r/t
d�|��d}~ww|D]+}z	|����WStjyb}zt�d�}|�	|tjj�r]t
d�|��d}~wwdS)z,Get password of the username for the servicerN�g-io-error-quark�Failed to unlock the item!�secret-error)�appidr�password_search_sync�schema�SearchFlags�UNLOCKr�Error�quark_try_string�matchesr
�IOErrorEnum�FAILEDr	�retrieve_secret_sync�get_text�	IS_LOCKED)�selfrr�
attributes�items�error�quark�itemrrr�get_password6s4��

��

���zKeyring.get_passwordc	
Cs�|j||d�}d�||�}zt�|j||j||d�}Wn2tjyM}z%t�d�}|�	|tjj
�r6td�|�t�d�}|�	|tj
j�rHtd�|��d}~ww|sTtd��dS)z,Set password for the username of the servicerzPassword for '{}' on '{}'Nrz Failed to unlock the collection!rzFailed to store password!)r�formatr�password_store_syncr�
collectionrr"r#r$r)r	r
r%r&r)	r*rr�passwordr+�label�storedr-r.rrr�set_passwordOs,��



���zKeyring.set_passwordc	Cs�|j||d�}z
t�|j|tjjd�}Wn tjy4}zt�d�}|�	|t
jj�r/t
d�|��d}~ww|D]1}zt�|j|��d�}W|Stjyh}zt�d�}|�	|tjj�rct
d�|��d}~wwtd��)z/Delete the stored password (only the first one)rNrrrzNo such password!)rrrrr r!rr"r#r$r
r%r&r	�password_clear_sync�get_attributesr)r)	r*rrr+r,r-r.r/�removedrrr�delete_passwordfs:��

����

��zKeyring.delete_passwordcCs�d|i}|r
||d<z
t�|j|tjjd�}Wn tjy7}zt�d�}|�|t	j
j�r2td�|��d}~ww|D]5}|�
��d�}zt||�����WStjyo}zt�d�}|�|tjj�rjtd�|��d}~wwdS)aWGet the first username and password for a service.
        Return a Credential instance

        The username can be omitted, but if there is one, it will use get_password
        and return a SimpleCredential containing  the username and password
        Otherwise, it will return the first username and password combo that it finds.
        rrNrrr)rrrr r!rr"r#r$r
r%r&r	r9�getrr'r(r))r*rr�queryr,r-r.r/rrr�get_credential�s8�

��
�

���zKeyring.get_credentialN)r�
__module__�__qualname__�__doc__r�	availabler�Schema�new�SchemaFlags�NONE�SchemaAttributeType�STRINGr�COLLECTION_DEFAULTr3r�
ClassProperty�classmethodrr0r7r;r>rrrrrs(��	r)�logging�utilr�backendr�credentialsr�errorsrrrr	rB�gi�
gi.repositoryr
r�require_versionr�AttributeError�ImportError�
ValueError�	getLoggerr�logrrrrr�<module>s$�


Spamworldpro Mini