Part of lp.services.verification.interfaces.logintoken View In Hierarchy
| Attribute | title | Title |
| Method | get | Return the LoginToken object with the given id. |
| Method | searchByEmailRequesterAndType | Return all LoginTokens for the given email, requester and type. |
| Method | deleteByEmailRequesterAndType | Delete all LoginToken entries with the given email, requester and |
| Method | searchByFingerprintRequesterAndType | Return all LoginTokens for the given fingerprint, requester and |
| Method | deleteByFingerprintRequesterAndType | Delete all LoginToken entries with the given fingerprint, |
| Method | getPendingGPGKeys | Return tokens for OpenPGP keys pending validation, optionally for |
| Method | new | Create a new LoginToken object. Parameters must be: |
| Method | __getitem__ | Returns the LoginToken with the given id. |
Return the default value if there's no such LoginToken.
| Parameters | The email address to search for. | |
| requester | The Person object representing the requester to search for. | |
| type | The LoginTokenType to search for. | |
| consumed | A flag indicating whether to return consumed tokens. If False, only unconsumed tokens will be returned. If True, only consumed tokens will be returned. If None, this parameter will be ignored and all tokens will be returned. |
| Parameters | fingerprint | The LoginToken fingerprint to search for. |
| requester | The Person object representing the requester to search for. | |
| type | The LoginTokenType to search for. | |
| consumed | A flag indicating whether to return consumed tokens. If False, only unconsumed tokens will be returned. If True, only consumed tokens will be returned. If None, this parameter will be ignored and all tokens will be returned. |
email: the email address that this request will be sent to. It should be previously validated by valid_email()
tokentype: the type of the request, according to LoginTokenType.
fingerprint: The OpenPGP key fingerprint used to retrieve key information from the key server if necessary. This can be None if not required to process the 'request' in question.