File: //lib/python3.6/site-packages/yubico/__pycache__/yubikey_config_util.cpython-36.pyc
3
y@�V� � @ sd d Z ddddgZG dd� de�ZG dd� de�ZG dd� de�ZG d d� de�ZG d
d� de�ZdS )z+
utility functions used in yubikey_config.
�YubiKeyConfigBits�YubiKeyConfigFlag�YubiKeyExtendedFlag�YubiKeyTicketFlagc @ sX e Zd ZdZddddddgfdd�Zd d
� Zdd� Zd
d� Zdd� Zdd� Z dd� Z
dS )�YubiKeyFlagz0
A flag value, and associated metadata.
N� ZYubiKeyzYubiKey NEOz YubiKey 4c C sx t |�tk rf st�t |�tk r(f s(t�t |�tk r<f s<t�t |�tk rPf sPt�|| _|| _|| _|| _ || _
|| _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�AssertionError�int�tuple�list�key�value�doc� min_ykver� max_ykver�models)�selfr
r r r r r � r �)/usr/lib/python3.6/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<