/var/opt/nydus/ops/mysql/connector/aio/plugins/__pycache__
Edit: /var/opt/nydus/ops/mysql/connector/aio/plugins/__pycache__/__init__.cpython-312.pyc (6162B)
Nj d Z ddgZddlZddlmZmZ ddlmZ ddlm Z m
Z
mZmZ ddl
mZmZ dd lmZ e rd
dlmZ dZ G d
de Z edd ddedee dee fd Zy)z!Base Authentication Plugin class.MySQLAuthPluginget_auth_plugin N)ABCabstractmethod) lru_cache)
TYPE_CHECKINGAnyOptionalType)NotSupportedErrorProgrammingError)logger )MySQLSocketzmysql.connector.aio.pluginsc e Zd ZdZ ddedededdfdZedefd Zee defd Z
ee defd
Ze dede
dee fd
Zdddede
defdZe dddede
defd Zy)r zAuthorization plugin interface.usernamepasswordssl_enabledreturnNc > |dn|| _ |dn|| _ || _ y)zConstructor.N ) _username _password_ssl_enabled)selfr r r s U/opt/nydus/tmp/pip-target-a90h98xg/lib/python/mysql/connector/aio/plugins/__init__.py__init__zMySQLAuthPlugin.__init__3 s( %-$4b($,$4b("- c | j S )z&Signals whether or not SSL is enabled.)r r s r r zMySQLAuthPlugin.ssl_enabled> s r c y)z'Signals whether or not SSL is required.N r s r requires_sslzMySQLAuthPlugin.requires_sslC r c y)zPlugin official name.Nr" r s r namezMySQLAuthPlugin.nameH r$ r auth_datakwargsc y)a Make the client's authorization response.
Args:
auth_data: Authorization data.
kwargs: Custom configuration to be passed to the auth plugin
when invoked. The parameters defined here will override the ones
defined in the auth plugin itself.
Returns:
packet: Client's authorization response.
Nr" )r r' r( s r
auth_responsezMySQLAuthPlugin.auth_responseM r$ r sockr c K t w)a1 Handles server's `auth more data` response.
Args:
sock: Pointer to the socket connection.
auth_data: Authentication method data (from a packet representing
an `auth more data` response).
kwargs: Custom configuration to be passed to the auth plugin
when invoked. The parameters defined here will override the ones
defined in the auth plugin itself.
Returns:
packet: Last server's response after back-and-forth communication.
)NotImplementedErrorr r+ r' r( s r auth_more_responsez"MySQLAuthPlugin.auth_more_response[ s "!s c K yw)a? Handles server's `auth switch request` response.
Args:
sock: Pointer to the socket connection.
auth_data: Plugin provided data (extracted from a packet
representing an `auth switch request` response).
kwargs: Custom configuration to be passed to the auth plugin
when invoked. The parameters defined here will override the ones
defined in the auth plugin itself.
Returns:
packet: Last server's response after back-and-forth communication.
Nr" r. s r auth_switch_responsez$MySQLAuthPlugin.auth_switch_responsem s s )F)__name__
__module____qualname____doc__strboolr propertyr r r# r&