File: //var/opt/nydus/ops/mysql/connector/plugins/__pycache__/authentication_oci_client.cpython-39.pyc
a
�,�h�$ � @ s, d Z ddlZddlZddlmZ ddlmZ ddlmZm Z m
Z
mZ ddlm
Z
ddlmZ erldd lmZ z8dd
lmZ ddlmZmZ ddlmZ dd
lmZ W n ey� e
�d�d�Y n0 zddlmZmZ W n ey� e
�d�d�Y n0 ddlmZ dZ dZ!dZ"dZ#dZ$G dd� de�Z%dS )zOCI Authentication Plugin.� N)� b64encode)�Path)�
TYPE_CHECKING�Any�Dict�Optional� )�errors)�logger)�MySQLSocket)�UnsupportedAlgorithm)�hashes�
serialization)�padding)�PRIVATE_KEY_TYPESz'Package 'cryptography' is not installed)�config�
exceptionszGPackage 'oci' (Oracle Cloud Infrastructure Python SDK) is not installed� )�MySQLAuthPlugin�MySQLOCIAuthPlugini ( z0Ephemeral security token is too large (10KB max)zGEphemeral security token file ('security_token_file') could not be readzKOCI configuration file does not contain a 'fingerprint' or 'key_file' entryc @ s� e Zd ZU dZdZeed<