diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-04-14 21:15:36 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-04-14 21:15:36 -0400 |
commit | 27c750de99df6818b5bc0414dd7995fb514f5c28 (patch) | |
tree | 3da23585595b6defdcf290e680d71800ce166c64 /docs | |
parent | 3bf44db428e98058e29cd5e7ddd97fd5baad3dee (diff) | |
parent | d14dcc577ffc851eb32a2f77431f043fa5a7ce37 (diff) | |
download | cryptography-27c750de99df6818b5bc0414dd7995fb514f5c28.tar.gz cryptography-27c750de99df6818b5bc0414dd7995fb514f5c28.tar.bz2 cryptography-27c750de99df6818b5bc0414dd7995fb514f5c28.zip |
Merge pull request #1848 from reaperhulk/invalid-token
Twofactor invalid token
Diffstat (limited to 'docs')
-rw-r--r-- | docs/exceptions.rst | 6 | ||||
-rw-r--r-- | docs/hazmat/primitives/twofactor.rst | 13 |
2 files changed, 9 insertions, 10 deletions
diff --git a/docs/exceptions.rst b/docs/exceptions.rst index 28da8ecc..59d7d9d7 100644 --- a/docs/exceptions.rst +++ b/docs/exceptions.rst @@ -37,9 +37,3 @@ Exceptions This is raised when the verify method of a key derivation function's computed key does not match the expected key. - - -.. class:: InvalidToken - - This is raised when the verify method of a one time password function's - computed token does not match the expected token. diff --git a/docs/hazmat/primitives/twofactor.rst b/docs/hazmat/primitives/twofactor.rst index 89d81222..dd3e0250 100644 --- a/docs/hazmat/primitives/twofactor.rst +++ b/docs/hazmat/primitives/twofactor.rst @@ -11,6 +11,11 @@ Currently, it contains an algorithm for generating and verifying one time password values based on Hash-based message authentication codes (HMAC). +.. class:: InvalidToken + + This is raised when the verify method of a one time password function's + computed token does not match the expected token. + .. currentmodule:: cryptography.hazmat.primitives.twofactor.hotp .. class:: HOTP(key, length, algorithm, backend) @@ -66,8 +71,8 @@ codes (HMAC). :param bytes hotp: The one time password value to validate. :param int counter: The counter value to validate against. - :raises cryptography.exceptions.InvalidToken: This is raised when the - supplied HOTP does not match the expected HOTP. + :raises cryptography.hazmat.primitives.twofactor.InvalidToken: This + is raised when the supplied HOTP does not match the expected HOTP. Throttling ~~~~~~~~~~ @@ -164,5 +169,5 @@ similar to the following code. :param bytes totp: The one time password value to validate. :param int time: The time value to validate against. - :raises cryptography.exceptions.InvalidToken: This is raised when the - supplied TOTP does not match the expected TOTP. + :raises cryptography.hazmat.primitives.twofactor.InvalidToken: This + is raised when the supplied TOTP does not match the expected TOTP. |