Skip to content

Add 'expired' method to Signed class #1305

Closed
@sechkova

Description

@sechkova

Description of issue or feature request:
Add a method of Signed metadata class returning information about metadata expiration given a reference time.

Current behavior:
Signed class already contains expires, a metadata expiration datetime object.

Expected behavior:
A method exists that checks the 'expires' attribute against a reference time.
def is_expired(self, reference_time: float) -> bool

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementexperimental-clientItems related to the development of a new client (see milestone/8 and theexperimental-client branch)good first issueBite-sized items for first time contributors

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions