관리-도구
편집 파일: general_name.cpython-311.pyc
� �܋f� � � � d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl m Z ej ej ej ej ej f Z G d� de� � Z G d� d ej � � � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )� )�annotationsN)� parseaddr)�Name)�ObjectIdentifierc � � e Zd ZdS )�UnsupportedGeneralNameTypeN)�__name__� __module__�__qualname__� � �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/cryptography/x509/general_name.pyr r s � � � � � ��Dr r c �@ � e Zd Zeej dd�� � � � ZdS )�GeneralName�return� typing.Anyc � � dS )z0 Return the value of the object Nr ��selfs r �valuezGeneralName.value s � � � r N)r r )r r r �property�abc�abstractmethodr r r r r r s@ � � � � � � ���� � � �� �X�� � r r )� metaclassc �^ � e Zd Zdd�Zedd�� � Zedd�� � Zdd�Zdd�Z dd�Z dS )� RFC822Namer �strr �Nonec � � t |t � � r4 |� d� � n,# t $ r t d� � �w xY wt d� � �t |� � \ }}|s|st d� � �|| _ d S )N�asciiz�RFC822Name values should be passed as an A-label string. This means unicode characters should be encoded via a library like idna.�value must be stringzInvalid rfc822name value)� isinstancer �encode�UnicodeEncodeError� ValueError� TypeErrorr �_value)r r �name�addresss r �__init__zRFC822Name.__init__% s� � ��e�S�!�!� 4� ����W�%�%�%�%��%� � � � �+�� � � ���� �2�3�3�3�!�%�(�(� ��g�� 9�w� 9� �7�8�8�8������ �- �Ac � � | j S �N�r'