OpenQuizz
Une application de gestion des contenus pédagogiques
_OCSPCache Class Reference
Inheritance diagram for _OCSPCache:
Collaboration diagram for _OCSPCache:

Public Member Functions

def __init__ (self)
 
def __setitem__ (self, key, value)
 
def __getitem__ (self, item)
 

Static Public Attributes

 CACHE_KEY_TYPE
 

Detailed Description

A cache for OCSP responses.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ __getitem__()

def __getitem__ (   self,
  item 
)
Get a cache entry if it exists.

'item' is of type cryptography.x509.ocsp.OCSPRequest

Raises KeyError if the item is not in the cache.

◆ __setitem__()

def __setitem__ (   self,
  key,
  value 
)
Add/update a cache entry.

'key' is of type cryptography.x509.ocsp.OCSPRequest
'value' is of type cryptography.x509.ocsp.OCSPResponse

Validity of the OCSP response must be checked by caller.

Field Documentation

◆ CACHE_KEY_TYPE

CACHE_KEY_TYPE
static

The documentation for this class was generated from the following file: