Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
pymacaroons
/
__pycache__
/
Filename :
verifier.cpython-310.pyc
back
Copy
o BQ�YQ � @ s� d dl Z zd dlmZ W n ey d dlmZ Y nw d dlmZ d dl m Z d dlmZm Z d dlmZmZmZmZ G dd � d e�ZdS ) � N)�compare_digest)�equals)�HashSignaturesBinder)�!MacaroonInvalidSignatureException)� FirstPartyCaveatVerifierDelegate� ThirdPartyCaveatVerifierDelegate)�convert_to_bytes�convert_to_string�generate_derived_key�hmac_digestc @ s` e Zd Zdd� Zdd� Zdd� Zdd� Zdd d�Zddd �Zdd� Z dd� Z dd� Zdd� Zd S )�Verifierc C s* g | _ | jg| _d | _t� | _t� | _d S �N)� predicates�verify_exact� callbacks�calculated_signaturer �$first_party_caveat_verifier_delegater �$third_party_caveat_verifier_delegate)�self� r �6/usr/lib/python3/dist-packages/pymacaroons/verifier.py�__init__ s ��zVerifier.__init__c C s$ |d u rt d��| j�t|�� d S )NzPredicate cannot be none.)� TypeErrorr �appendr �r Z predicater r r � satisfy_exact$ s zVerifier.satisfy_exactc C s"