/var/opt/nydus/ops/mysql/connector/aio/plugins/__pycache__
NameSizeModeActions
authentication_kerberos_client.cpython-312.pyc233050644editdlrm
authentication_ldap_sasl_client.cpython-312.pyc283570644editdlrm
authentication_oci_client.cpython-312.pyc103910644editdlrm
authentication_openid_connect_client.cpython-312.pyc72810644editdlrm
authentication_webauthn_client.cpython-312.pyc113360644editdlrm
caching_sha2_password.cpython-312.pyc63210644editdlrm
mysql_clear_password.cpython-312.pyc38950644editdlrm
mysql_native_password.cpython-312.pyc47460644editdlrm
sha256_password.cpython-312.pyc40390644editdlrm
__init__.cpython-312.pyc61620644editdlrm
Edit: /var/opt/nydus/ops/mysql/connector/aio/plugins/__pycache__/__init__.cpython-312.pyc (6162B)
N j dZddgZddlZddlmZmZddlmZddlm Z m Z m Z m Z ddl mZmZdd lmZe rd d lmZd ZGd deZedd ddede ede efdZy)z!Base Authentication Plugin class.MySQLAuthPluginget_auth_pluginN)ABCabstractmethod) lru_cache) TYPE_CHECKINGAnyOptionalType)NotSupportedErrorProgrammingError)logger) MySQLSocketzmysql.connector.aio.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)rzAuthorization plugin interface.usernamepassword ssl_enabledreturnNc>|dn||_|dn||_||_y)z Constructor.N) _username _password _ssl_enabled)selfrrrs U/opt/nydus/tmp/pip-target-a90h98xg/lib/python/mysql/connector/aio/plugins/__init__.py__init__zMySQLAuthPlugin.__init__3s(%-$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.Nr s r requires_sslzMySQLAuthPlugin.requires_sslCrcy)zPlugin official name.Nr"r s rnamezMySQLAuthPlugin.nameHr$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_responseMr$rsockrcKtw)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_response[s "!s c Kyw)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_responsemss)F)__name__ __module__ __qualname____doc__strboolrpropertyrrr#r&bytesr r r*r/r1r"rrrr0s) " . . . .  .!T!!6d66$c$$  u        "!".3"?B" "$ ! .3 ?B   r 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_PKGrinfo importlib import_modulehasattrAUTHENTICATION_PLUGIN_CLASSgetattrModuleNotFoundErrorwarning ValueErrorr r )r=r>package plugin_moduleerrs rrrs("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)r5__all__rCabcrr functoolsrtypingrr r r mysql.connector.errorsr r mysql.connector.loggerrnetworkrrArr6rr"rrrUs:( / 0#55F)%3M cM ` 2U#(,!W!W}!W /!W$!Wr