%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/keyring/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/keyring/__pycache__/credentials.cpython-312.pyc |
� �e9 � �l � d dl Z d dlZ G d� dej �� Z G d� de� Z G d� de� Zy) � Nc �X � e Zd ZdZej d� � Zej d� � Zy)� Credentialz$Abstract class to manage credentialsc � � y �N� ��selfs �5/usr/lib/python3/dist-packages/keyring/credentials.py�usernamezCredential.username � � �� c � � y r r r s r �passwordzCredential.password r r N)�__name__� __module__�__qualname__�__doc__�abc�abstractpropertyr r r r r r r s7 � �.����� �� ���� �r r )� metaclassc �6 � e Zd ZdZd� Zed� � Zed� � Zy)�SimpleCredentialz!Simple credentials implementationc � � || _ || _ y r )� _username� _password)r r r s r �__init__zSimpleCredential.__init__ s � �!���!��r c � � | j S r )r r s r r zSimpleCredential.username � � ��~�~�r c � � | j S r )r r s r r zSimpleCredential.password r r N)r r r r r �propertyr r r r r r r s2 � �+�"� �� �� �� �r r c �L � e Zd ZdZd� Zdedefd�Zd� Ze d� � Z e d� � Zy ) �EnvironCredentialaA Source credentials from environment variables. Actual sourcing is deferred until requested. Supports comparison by equality. >>> e1 = EnvironCredential('a', 'b') >>> e2 = EnvironCredential('a', 'b') >>> e3 = EnvironCredential('a', 'c') >>> e1 == e2 True >>> e2 == e3 False c � � || _ || _ y r )�user_env_var�pwd_env_var)r r$ r% s r r zEnvironCredential.__init__2 s � �(���&��r �other�returnc �0 � t | � t |� k( S r )�vars)r r&