0x1949 Team - FAZEMRX - MANAGER
Edit File: credentials.cpython-310.pyc
o ���a9 � @ sH d dl Z d dlZG dd� dejd�ZG dd� de�ZG dd� de�ZdS ) � Nc @ s, e Zd ZdZejdd� �Zejdd� �ZdS )� Credentialz$Abstract class to manage credentialsc C � d S �N� ��selfr r �5/usr/lib/python3/dist-packages/keyring/credentials.py�username � zCredential.usernamec C r r r r r r r �password r zCredential.passwordN)�__name__� __module__�__qualname__�__doc__�abc�abstractpropertyr r r r r r r s r )� metaclassc @ s0 e Zd ZdZdd� Zedd� �Zedd� �ZdS ) �SimpleCredentialz!Simple credentials implementationc C � || _ || _d S r )� _username� _password)r r r r r r �__init__ � zSimpleCredential.__init__c C � | j S r )r r r r r r � zSimpleCredential.usernamec C r r )r r r r r r r zSimpleCredential.passwordN)r r r r r �propertyr r r r r r r s r c @ sJ e Zd ZdZdd� Zdedefdd�Zdd � Ze d d� �Z e dd � �ZdS )�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 C r r )�user_env_var�pwd_env_var)r r r r r r r 2 r zEnvironCredential.__init__�other�returnc C s t | �t |�kS r )�vars)r r r r r �__eq__6 s zEnvironCredential.__eq__c C s t j�|�}|std| ��|S )z&Helper to read an environment variablezMissing environment variable:%s)�os�environ�get� ValueError)r �env_var�valuer r r �_get_env9 s zEnvironCredential._get_envc C � | � | j�S r )r) r r r r r r @ � zEnvironCredential.usernamec C r* r )r) r r r r r r D r+ zEnvironCredential.passwordN)r r r r r �object�boolr"