| Server IP : 209.205.66.10 / Your IP : 216.73.216.173 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ammon 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64 User : ( 1006) PHP Version : 8.5.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/macaroonbakery/checkers/__pycache__/ |
Upload File : |
o
�6�\ �
@ s* d dl Z d dlmZ d dlmZ d dlZddlmZ ddlmZm Z m
Z
mZmZm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ G dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� dedd��Zdd� Zdd� Zdd� Z dd� Z!dd� Z"d d!� Z#d"d#� Z$eee eee ee!e
e"iZ%dS )$� N)�
namedtuple)�datetime� )�parse_caveat)�
COND_ALLOW�
COND_DECLARED� COND_DENY�
COND_ERROR�COND_TIME_BEFORE�
STD_NAMESPACE)�DECLARED_KEY)� Namespace)�OP_KEY)�TIME_KEY)�condition_with_prefixc @ s e Zd ZdZdS )�
RegisterErrorz<Raised when a condition cannot be registered with a Checker.N)�__name__�
__module__�__qualname__�__doc__� r r �C/usr/lib/python3/dist-packages/macaroonbakery/checkers/_checkers.pyr s r c @ s, e Zd ZdZejZejdd� �Zdd� Z dS )�FirstPartyCaveatCheckerz�Used to check first party caveats for validity with respect to
information in the provided context.
If the caveat kind was not recognised, the checker should return
ErrCaveatNotRecognized.
c C � t d��)z� Checks that the given caveat condition is valid with respect to
the given context information.
:param ctx: an Auth context
:param caveat a string
z;check_first_party_caveat method must be defined in subclass��NotImplementedError)�self�ctx�caveatr r r �check_first_party_caveat&