/var/opt/nydus/ops/mysql/connector/plugins/__pycache__
NameSizeModeActions
authentication_kerberos_client.cpython-312.pyc229970644editdlrm
authentication_ldap_sasl_client.cpython-312.pyc277530644editdlrm
authentication_oci_client.cpython-312.pyc102390644editdlrm
authentication_openid_connect_client.cpython-312.pyc71430644editdlrm
authentication_webauthn_client.cpython-312.pyc110030644editdlrm
caching_sha2_password.cpython-312.pyc60650644editdlrm
mysql_clear_password.cpython-312.pyc37420644editdlrm
mysql_native_password.cpython-312.pyc45940644editdlrm
sha256_password.cpython-312.pyc38860644editdlrm
__init__.cpython-312.pyc60470644editdlrm
Edit: /var/opt/nydus/ops/mysql/connector/plugins/__pycache__/__init__.cpython-312.pyc (6047B)
N j dZddlZddlmZmZddlmZddlmZm Z m Z m Z ddl m Z mZddlmZerdd lmZd ZGd d eZed d ddede ede efdZy)z!Base Authentication Plugin class.N)ABCabstractmethod) lru_cache) TYPE_CHECKINGAnyOptionalType)NotSupportedErrorProgrammingError)logger) MySQLSocketzmysql.connector.pluginsc eZdZdZ ddedededdfdZedefdZee defd Z ee defd Z e d e d e dee fd Zddd e d e de fdZe ddd e d e de fdZy)MySQLAuthPluginzAuthorization plugin interface.usernamepassword ssl_enabledreturnNc>|dn||_|dn||_||_y)z Constructor.N) _username _password _ssl_enabled)selfrrrs Q/opt/nydus/tmp/pip-target-a90h98xg/lib/python/mysql/connector/plugins/__init__.py__init__zMySQLAuthPlugin.__init__1s(%-$4b($,$4b("-c|jS)z&Signals whether or not SSL is enabled.)rrs rrzMySQLAuthPlugin.ssl_enabled<s   rcy)z'Signals whether or not SSL is required.Nrs r requires_sslzMySQLAuthPlugin.requires_sslArcy)zPlugin official name.Nr!rs rnamezMySQLAuthPlugin.nameFr#r auth_datakwargsc y)aMake 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!)rr&r's r auth_responsezMySQLAuthPlugin.auth_responseKr#rsockrc t)a1Handles 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. )NotImplementedErrorrr*r&r's rauth_more_responsez"MySQLAuthPlugin.auth_more_responseYs "!rc y)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 rauth_switch_responsez$MySQLAuthPlugin.auth_switch_responsekr#r)F)__name__ __module__ __qualname____doc__strboolrpropertyrrr"r%bytesrrr)r.r0r!rrrr.s) " . . . .  .!T!!6d66$c$$  u        "!".3"?B" "$ ! .3 ?B   rr F)maxsizetyped plugin_nameauth_plugin_classrct}|r tjd|tjd|tjd||}|r t ||s |j }tjd|t||Std|d #t$r }tjd|Yd}~3d}~wt$r}td||d}~wwxYw) aReturn authentication class based on plugin name This function returns the class for the authentication plugin plugin_name. The returned class is a subclass of BaseAuthPlugin. Args: plugin_name (str): Authentication plugin name. auth_plugin_class (str): Authentication plugin class name. Raises: NotSupportedError: When plugin_name is not supported. Returns: Subclass of `MySQLAuthPlugin`. z package: %szplugin_name: %s.zAUTHENTICATION_PLUGIN_CLASS: %sz"Requested Module was not found: %sNzInvalid module name: zAuthentication plugin 'z' is not supported) DEFAULT_PLUGINS_PKGr info importlib import_modulehasattrAUTHENTICATION_PLUGIN_CLASSgetattrModuleNotFoundErrorwarning ValueErrorr r )r<r=package plugin_moduleerrs rget_auth_pluginrM~s("G K KK w / KK); 7%33a }4EwOM$GMCT,U$1$M$M! KK9;L M=*;< < 5k]BTU VV # F NN? E E K"%:3%#@As J Ks$BB C#B>> C CC)N)r4rBabcrr functoolsrtypingrrrr errorsr r r networkrr@rr5rMr!rrrSs:(#558%/M cM ` 2U#(,!W!W}!W /!W$!Wr