l.s.l.m.TimeLimitedToken(StormBase) : class documentation

Part of lp.services.librarian.model View In Hierarchy

A time limited access token for accessing a private file.
Method __init__ Create a TimeLimitedToken.
Static Method allocate Allocate a token for url path in the librarian.
Static Method url_to_token_path Return the token path used for authorising access to url.

Inherited from StormBase:

Method __storm_invalidated__ Flush cached properties.
def __init__(self, path, token, created=None):
Create a TimeLimitedToken.
@staticmethod
def allocate(url):
Allocate a token for url path in the librarian.
ParametersurlA url bytestring. e.g. https://i123.restricted.launchpad-librarian.net/123/foo.txt Note that the token is generated for 123/foo.txt
ReturnsA url fragment token ready to be attached to the url. e.g. 'a%20token'
@staticmethod
def url_to_token_path(url):
Return the token path used for authorising access to url.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.