Part of lp.services.librarian.model View In Hierarchy
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. |
Parameters | url | A url bytestring. e.g. https://i123.restricted.launchpad-librarian.net/123/foo.txt Note that the token is generated for 123/foo.txt |
Returns | A url fragment token ready to be attached to the url. e.g. 'a%20token' |