D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib
/
python3.9
/
site-packages
/
yubico
/
__pycache__
/
Filename :
yubikey_config_util.cpython-39.pyc
back
Copy
a �w\� � @ s` d Z g d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG d d� de�ZdS ) z+ utility functions used in yubikey_config. )�YubiKeyConfigBits�YubiKeyConfigFlag�YubiKeyExtendedFlag�YubiKeyTicketFlagc @ sV e Zd ZdZdddg d�fdd�Zdd� Zd d � Zdd� Zd d� Zdd� Z dd� Z dS )�YubiKeyFlagz0 A flag value, and associated metadata. N�� r )ZYubiKeyzYubiKey NEOz YubiKey 4c C sx t |�turdsJ �t |�tur(ds(J �t |�tur<ds<J �t |�turPdsPJ �|| _|| _|| _|| _|| _ || _ dS )a� Metadata about a ticket/config/extended flag bit. @param key: Name of flag, such as 'APPEND_CR' @param value: Bit value, 0x20 for APPEND_CR @param doc: Human readable description of flag @param min_ykver: Tuple with the minimum version required (major, minor,) @param min_ykver: Tuple with the maximum version required (major, minor,) (for depreacted flags) @param models: List of model identifiers (strings) that support this flag � N)�type�str�int�tuple�list�key�value�doc� min_ykver� max_ykver�models)�selfr r r r r r r r �>/usr/lib/python3.9/site-packages/yubico/yubikey_config_util.py�__init__ s zYubiKeyFlag.__init__c C s d| j jtt| ��| j| jf S )Nz<%s instance at %s: %s (0x%x)>)� __class__�__name__�hex�idr r �r r r r �__repr__4 s �zYubiKeyFlag.__repr__c C s | j |kS )z0 Check if key is equal to that of this instance )r )r r r r r �is_equal<