Skip to content

jam.jose.lists.base

__base__

Classes:

Name Description
BaseJWTList

Abstract class for lists manipulation.

BaseJWTList

Bases: ABC

Abstract class for lists manipulation.

Methods:

Name Description
add

Add a single token to the list.

add_many

Add multiple tokens to the list.

check

Check if a token is present in the list.

check_many

Check multiple tokens in the list.

delete

Remove a single token from the list.

delete_many

Remove multiple tokens from the list.

add abstractmethod

add(token: str) -> None

Add a single token to the list.

add_many abstractmethod

add_many(tokens: list[str]) -> None

Add multiple tokens to the list.

check abstractmethod

check(token: str) -> bool

Check if a token is present in the list.

check_many abstractmethod

check_many(tokens: list[str]) -> dict[str, bool]

Check multiple tokens in the list.

delete abstractmethod

delete(token: str) -> None

Remove a single token from the list.

delete_many abstractmethod

delete_many(tokens: list[str]) -> None

Remove multiple tokens from the list.