D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib64
/
python3.9
/
site-packages
/
gssapi
/
__pycache__
/
Filename :
mechs.cpython-39.pyc
back
Copy
a ��_ � @ s^ d dl Z d dlmZ d dlmZ d dlmZ d dlm Z ed�Z ed�ZG dd � d ej�Z dS ) � N)�oids)�import_gssapi_extension)�misc)�_utils�rfc5587�rfc5801c s� e Zd ZdZd#� fdd� Zedd� �Zedd� �Zed d � �Zdd� Z d d� Z dd� Zdd� Zedd� �Z edd� �Zedd� �Zedd� �Zedd� �Zed$dd��Zed%dd ��Zed&d!d"��Z� ZS )'� Mechanisma0 A GSSAPI Mechanism This class represents a mechanism and centralizes functions dealing with mechanisms and can be used with any calls. It inherits from the low-level GSSAPI :class:`~gssapi.raw.oids.OID` class, and thus can be used with both low-level and high-level API calls. Nc s t t| ��| ||�S �N)�superr �__new__)�clsZcpy�elements�� __class__� �2/usr/lib64/python3.9/site-packages/gssapi/mechs.pyr s zMechanism.__new__c C s t �| �S )zH Get the set of name types supported by this mechanism. )�rmiscZinquire_names_for_mech��selfr r r � name_types s zMechanism.name_typesc C s t d u rtd��t �| �S )N�=Your GSSAPI implementation does not have support for RFC 5801)r �NotImplementedErrorZinquire_saslname_for_mechr r r r � _saslname s zMechanism._saslnamec C s t d u rtd��t �| �S )N�=Your GSSAPI implementation does not have support for RFC 5587)r r Zinquire_attrs_for_mechr r r r �_attrs'