o
    j                     @   sd   d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	 d dlm
Z
 d dlmZ G dd deZd	S )
    )List)UniCredential)asyauthSecretasyauthProtocolasyauthSubProtocol)SubProtocol)SubProtocolNative)SPNEGOCredentialc                   @   s2   e Zd Zg e fdee defddZdd ZdS )CREDSSPCredentialcredentialssubprotocolc                 C   s   t j| tj|d || _d S )N)protocolr   )r   __init__r   CREDSSPr   )selfr   r    r   /root/aizidognhua/tmp/workspace/projects/ec89d86c-575f-41c9-af57-ac45cbdbf775/venv/lib/python3.10/site-packages/asyauth/common/credentials/credssp.pyr   
   s   
zCREDSSPCredential.__init__c                 O   sH   t | j}| jjtjkrddlm} || }| |_	|S t
d| j )Nr   )CredSSPClientNativezUnsupported subprotocol "%s")r	   r   r   typer   NATIVE'asyauth.protocols.credssp.client.nativer   build_contextauth_ctx	Exception)r   argskwargsspnego_credr   credssp_ctxr   r   r   r      s   

zCREDSSPCredential.build_contextN)	__name__
__module____qualname__r   r   r   r   r   r   r   r   r   r   r
   	   s    r
   N)typingr   asyauth.common.credentialsr   asyauth.common.constantsr   r   r   asyauth.common.subprotocolsr   r   !asyauth.common.credentials.spnegor	   r
   r   r   r   r   <module>   s   