File: //var/opt/nydus/ops/mysql/connector/plugins/__pycache__/sha256_password.cpython-39.pyc
a
�,�h� � @ sd d Z ddlmZmZmZ ddlmZ ddlmZ ddlmZ erLddl m
Z
d ZG d
d � d e�ZdS )z&SHA256 Password Authentication Plugin.� )�
TYPE_CHECKING�Any�Optional� )�errors)�logger� )�MySQLAuthPlugin)�MySQLSocket�MySQLSHA256PasswordAuthPluginc @ sl e Zd ZdZed�dd�Zeed�dd��Zee d�dd��Z
eeee d �d
d�Z
deeed
�dd�ZdS )r z�Class implementing the MySQL SHA256 authentication plugin
Note that encrypting using RSA is not supported since the Python
Standard Library does not provide this OpenSSL functionality.
)�returnc C s | j �� d S )zyPrepare and return password as as clear text.
Returns:
password (bytes): Prepared password.
� )Z _password�encode��self� r �Z/opt/nydus/tmp/pip-target-wkfpz8uv/lib64/python/mysql/connector/plugins/sha256_password.py�_prepare_password2 s z/MySQLSHA256PasswordAuthPlugin._prepare_passwordc C s dS )zPlugin official name.Zsha256_passwordr r r r r �name: s z"MySQLSHA256PasswordAuthPlugin.namec C s dS )z'Signals whether or not SSL is required.Tr r r r r �requires_ssl? s z*MySQLSHA256PasswordAuthPlugin.requires_ssl)� auth_data�kwargsr c K s&